Add owncloud version to JS scope

Fix #5361
This commit is contained in:
Joas Schilling 2014-02-26 11:40:41 +01:00
parent 37a2f8c6cb
commit cb14b1c58d
1 changed files with 4 additions and 2 deletions

View File

@ -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(