aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-03-14 20:55:26 +0100
committerLukas Reschke <lukas@owncloud.com>2016-03-15 10:41:17 +0100
commitc7abd307c074c5e4fe1dc99fe4a8b094de9555b9 (patch)
tree8f4b4095aac07b09d65e9e2b2f99153793ef0648 /lib
parent2cfde7cd0b309e4ea959fa828e0c10804cd747b1 (diff)
downloadnextcloud-server-c7abd307c074c5e4fe1dc99fe4a8b094de9555b9.tar.gz
nextcloud-server-c7abd307c074c5e4fe1dc99fe4a8b094de9555b9.zip
Replace all required values
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files.php b/lib/private/files.php
index b0d070637d7..9b6a1a4465f 100644
--- a/lib/private/files.php
+++ b/lib/private/files.php
@@ -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;
}