Merge pull request #7409 from owncloud/issue/5361

Add owncloud version to JS scope
remotes/origin/ldap_group_count
Thomas Müller 11 years ago
commit 2f0db9af07
  1. 6
      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(

Loading…
Cancel
Save