diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-08-01 13:28:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 13:28:53 +0200 |
commit | b5c5faebfc136d634fd7e80d6a0a8e1094bca717 (patch) | |
tree | 9378ca9389d8602476100539ac3830e006288798 /lib | |
parent | e65ca39993c148035585e70aae1937c58eded3c5 (diff) | |
parent | 6ce474518cdf0ff9377081e99ecf6a1eb3cb43a1 (diff) | |
download | nextcloud-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.php | 6 |
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); } /** |