diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-04-26 21:46:10 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-04-26 21:46:10 +0300 |
commit | eadadac24a1a5d2ea3d2426b3bb0b2af12f9982d (patch) | |
tree | b5df6ad8223970d322b5981f93d3725c9f526a36 /templates | |
parent | 2dcbcb9792e66089a2abccb545e1854014bb5ece (diff) |
invalidate js cache if app version changes
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/index.php b/templates/index.php index 9d82ac7bf..8fdf4b4de 100644 --- a/templates/index.php +++ b/templates/index.php @@ -23,9 +23,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ -// TODO: remove DEBUG constant check once minimum oc -// core version >= 8.2, see https://github.com/owncloud/core/pull/18510 -$debug = (defined('DEBUG') && DEBUG) || \OC::$server->getConfig()->getSystemValue('debug', false); style('mail', 'mail'); style('mail', 'mobile'); @@ -34,7 +31,7 @@ script('mail', 'vendor/jquery-storage-api/jquery.storageapi'); script('mail', 'vendor/jquery-visibility/jquery-visibility'); script('mail', 'vendor/requirejs/require'); script('mail', 'searchproxy'); -if ($debug) { +if ($_['debug']) { // Load JS dependencies asynchronously as specified in require_config.js script('mail', 'require_config'); } else { @@ -43,6 +40,8 @@ if ($debug) { } ?> +<input type="hidden" id="config-installed-version" value="<?php p($_['app-version']); ?>"> + <div id="user-displayname" style="display: none"><?php p(\OCP\User::getDisplayName(\OCP\User::getUser())); ?></div> <div id="user-email" |