Replace all required values
This commit is contained in:
parent
dfc7e6b421
commit
d1978a6950
|
@ -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