summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-08-01 13:28:53 +0200
committerGitHub <noreply@github.com>2018-08-01 13:28:53 +0200
commitb5c5faebfc136d634fd7e80d6a0a8e1094bca717 (patch)
tree9378ca9389d8602476100539ac3830e006288798 /lib
parente65ca39993c148035585e70aae1937c58eded3c5 (diff)
parent6ce474518cdf0ff9377081e99ecf6a1eb3cb43a1 (diff)
downloadnextcloud-server-b5c5faebfc136d634fd7e80d6a0a8e1094bca717.tar.gz
nextcloud-server-b5c5faebfc136d634fd7e80d6a0a8e1094bca717.zip
Merge pull request #10484 from nextcloud/bugfix/noid/theming-cache-update
Append cache bump parameter to scss files URL
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Template/SCSSCacher.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Template/SCSSCacher.php b/lib/private/Template/SCSSCacher.php
index 6a41c4db8b9..19734355d26 100644
--- a/lib/private/Template/SCSSCacher.php
+++ b/lib/private/Template/SCSSCacher.php
@@ -388,7 +388,11 @@ class SCSSCacher {
$fileName = array_pop($tmpfileLoc);
$fileName = $this->prependVersionPrefix($this->prependBaseurlPrefix(str_replace('.scss', '.css', $fileName)), $appName);
- return substr($this->urlGenerator->linkToRoute('core.Css.getCss', ['fileName' => $fileName, 'appName' => $appName]), strlen(\OC::$WEBROOT) + 1);
+ return substr($this->urlGenerator->linkToRoute('core.Css.getCss', [
+ 'fileName' => $fileName,
+ 'appName' => $appName,
+ 'v' => $this->config->getAppValue('core', 'scss.variables', '0')
+ ]), \strlen(\OC::$WEBROOT) + 1);
}
/**