Replace all required values
This commit is contained in:
parent
2cfde7cd0b
commit
c7abd307c0
|
@ -267,7 +267,7 @@ class OC_Files {
|
||||||
$pattern = vsprintf($patternMap['pattern'], [$key]);
|
$pattern = vsprintf($patternMap['pattern'], [$key]);
|
||||||
$setting = vsprintf($patternMap['setting'], [$key, $size]);
|
$setting = vsprintf($patternMap['setting'], [$key, $size]);
|
||||||
$hasReplaced = 0;
|
$hasReplaced = 0;
|
||||||
$newContent = preg_replace($pattern, $setting, $content, 1, $hasReplaced);
|
$newContent = preg_replace($pattern, $setting, $content, 2, $hasReplaced);
|
||||||
if ($newContent !== null) {
|
if ($newContent !== null) {
|
||||||
$content = $newContent;
|
$content = $newContent;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue