aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2017-04-22 11:57:08 +0200
committerJoas Schilling <coding@schilljs.com>2017-04-25 11:39:49 +0200
commit1c54463853e7bcbe857b6a874cbadd48a77bcf89 (patch)
treec59a09321a8d327457cde9595907e9e54b3236c0 /lib
parent68a63ad3f33c683d726219a508bb31de7b9ab1d0 (diff)
downloadnextcloud-server-1c54463853e7bcbe857b6a874cbadd48a77bcf89.tar.gz
nextcloud-server-1c54463853e7bcbe857b6a874cbadd48a77bcf89.zip
Use theming cachebuster for server resources
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/TemplateLayout.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index 64d21186f69..d7249a44293 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -197,7 +197,9 @@ class TemplateLayout extends \OC_Template {
// allows chrome workspace mapping in debug mode
return "";
}
-
+ if ($this->config->getSystemValue('installed', false) && \OC::$server->getAppManager()->isInstalled('theming')) {
+ return '?v=' . self::$versionHash . '-' . $this->config->getAppValue('theming', 'cachebuster', '0');
+ }
return '?v=' . self::$versionHash;
}