Replace all required values

This commit is contained in:
Lukas Reschke 2016-03-14 20:55:26 +01:00
parent dfc7e6b421
commit d1978a6950
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ class OC_Files {
$pattern = vsprintf($patternMap['pattern'], [$key]);
$setting = vsprintf($patternMap['setting'], [$key, $size]);
$hasReplaced = 0;
$newContent = preg_replace($pattern, $setting, $content, 1, $hasReplaced);
$newContent = preg_replace($pattern, $setting, $content, 2, $hasReplaced);
if ($newContent !== null) {
$content = $newContent;
}