aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/config.php
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2014-02-24 13:34:07 +0100
committerMorris Jobke <morris.jobke@gmail.com>2014-02-24 13:34:07 +0100
commit8d17f6d6757b3aa9f8019c022a3ff1f777c5b535 (patch)
treef8c491141c3319aaca2498063542e64034cfc30a /core/js/config.php
parentddb8cf32e90327376c5c6c170aae88a640b4d44e (diff)
parent80c61d480cfe0964707a9044738526a853c1211f (diff)
downloadnextcloud-server-8d17f6d6757b3aa9f8019c022a3ff1f777c5b535.tar.gz
nextcloud-server-8d17f6d6757b3aa9f8019c022a3ff1f777c5b535.zip
Merge pull request #7320 from owncloud/GuillaumeAmat-patch-1
Update page title when navigating through directories (local)
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 edb9ccfd0fb..c606ef35056 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) {
@@ -61,6 +64,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()
+ )
)
);