diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-02-26 11:40:41 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-02-26 11:50:52 +0100 |
commit | cb14b1c58dbfc605352193020cdbf19da797bb69 (patch) | |
tree | 41ebb4655bf68ef1d19d43dfaedbdf8a907591a6 /core/js/config.php | |
parent | 37a2f8c6cbccce616ff44badba8a03cafbba9764 (diff) | |
download | nextcloud-server-cb14b1c58dbfc605352193020cdbf19da797bb69.tar.gz nextcloud-server-cb14b1c58dbfc605352193020cdbf19da797bb69.zip |
Add owncloud version to JS scope
Fix #5361
Diffstat (limited to 'core/js/config.php')
-rw-r--r-- | core/js/config.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/js/config.php b/core/js/config.php index c606ef35056..7e23f3e2e41 100644 --- a/core/js/config.php +++ b/core/js/config.php @@ -61,8 +61,10 @@ $array = array( "firstDay" => json_encode($l->l('firstday', 'firstday')) , "oc_config" => json_encode( array( - 'session_lifetime' => \OCP\Config::getSystemValue('session_lifetime', ini_get('session.gc_maxlifetime')), - 'session_keepalive' => \OCP\Config::getSystemValue('session_keepalive', true) + 'session_lifetime' => \OCP\Config::getSystemValue('session_lifetime', ini_get('session.gc_maxlifetime')), + 'session_keepalive' => \OCP\Config::getSystemValue('session_keepalive', true), + 'version' => implode('.', OC_Util::getVersion()), + 'versionstring' => OC_Util::getVersionString(), ) ), "oc_defaults" => json_encode( |