diff options
author | Julius Härtl <jus@bitgrid.net> | 2017-04-22 11:57:08 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-04-25 11:39:49 +0200 |
commit | 1c54463853e7bcbe857b6a874cbadd48a77bcf89 (patch) | |
tree | c59a09321a8d327457cde9595907e9e54b3236c0 /lib | |
parent | 68a63ad3f33c683d726219a508bb31de7b9ab1d0 (diff) | |
download | nextcloud-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.php | 4 |
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; } |