diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-08-01 12:42:49 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-08-01 12:42:49 +0200 |
commit | 6ce474518cdf0ff9377081e99ecf6a1eb3cb43a1 (patch) | |
tree | 185a0640e4d531af350970a0310c4c5ebe3a27f4 /lib/private/Template | |
parent | 27d4ff8b4eb9c4c480faf0f112fc931dc7fdc343 (diff) | |
download | nextcloud-server-6ce474518cdf0ff9377081e99ecf6a1eb3cb43a1.tar.gz nextcloud-server-6ce474518cdf0ff9377081e99ecf6a1eb3cb43a1.zip |
Append cache bump parameter to scss files URL
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Template')
-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); } /** |