Merge pull request #7409 from owncloud/issue/5361

Add owncloud version to JS scope
This commit is contained in:
Thomas Müller 2014-02-26 14:44:12 +01:00
commit 2f0db9af07
1 changed files with 4 additions and 2 deletions

View File

@ -62,7 +62,9 @@ $array = array(
"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_keepalive' => \OCP\Config::getSystemValue('session_keepalive', true),
'version' => implode('.', OC_Util::getVersion()),
'versionstring' => OC_Util::getVersionString(),
)
),
"oc_defaults" => json_encode(