summaryrefslogtreecommitdiffstats
path: root/core/js/config.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-02-20 14:49:54 +0100
committerVincent Petry <pvince81@owncloud.com>2014-02-20 14:49:54 +0100
commit6cf83de60e577fa13c0e3963761153c26b854c01 (patch)
tree471f4bfcae0c199ba5e0ca0411140b0f4665a91c /core/js/config.php
parent3219433e20d05390aa29c4e9e676f821b48b3ffc (diff)
parent577559458dd7aa74e32ab62216a22bbc75009866 (diff)
downloadnextcloud-server-6cf83de60e577fa13c0e3963761153c26b854c01.tar.gz
nextcloud-server-6cf83de60e577fa13c0e3963761153c26b854c01.zip
Merge branch 'patch-1' of github.com:GuillaumeAmat/core into GuillaumeAmat-patch-1
Diffstat (limited to 'core/js/config.php')
-rw-r--r--core/js/config.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/core/js/config.php b/core/js/config.php
index b6875fb73f9..e79b4541301 100644
--- a/core/js/config.php
+++ b/core/js/config.php
@@ -16,6 +16,9 @@ header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
// Enable l10n support
$l = OC_L10N::get('core');
+// Enable OC_Defaults support
+$defaults = new OC_Defaults();
+
// Get the config
$apps_paths = array();
foreach(OC_App::getEnabledApps() as $app) {
@@ -60,6 +63,20 @@ $array = array(
'session_lifetime' => \OCP\Config::getSystemValue('session_lifetime', ini_get('session.gc_maxlifetime')),
'session_keepalive' => \OCP\Config::getSystemValue('session_keepalive', true)
)
+ ),
+ "oc_defaults" => json_encode(
+ array(
+ 'entity' => $defaults->getEntity(),
+ 'name' => $defaults->getName(),
+ 'title' => $defaults->getTitle(),
+ 'baseUrl' => $defaults->getBaseUrl(),
+ 'syncClientUrl' => $defaults->getSyncClientUrl(),
+ 'docBaseUrl' => $defaults->getDocBaseUrl(),
+ 'slogan' => $defaults->getSlogan(),
+ 'logoClaim' => $defaults->getLogoClaim(),
+ 'shortFooter' => $defaults->getShortFooter(),
+ 'longFooter' => $defaults->getLongFooter()
+ )
)
);