summaryrefslogtreecommitdiffstats
path: root/core/js/config.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-02-26 11:40:41 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-02-26 11:50:52 +0100
commitcb14b1c58dbfc605352193020cdbf19da797bb69 (patch)
tree41ebb4655bf68ef1d19d43dfaedbdf8a907591a6 /core/js/config.php
parent37a2f8c6cbccce616ff44badba8a03cafbba9764 (diff)
downloadnextcloud-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.php6
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(