diff options
author | Guillaume AMAT <guillaume.amat@informatique-libre.com> | 2014-02-13 10:47:03 +0100 |
---|---|---|
committer | Guillaume AMAT <guillaume.amat@informatique-libre.com> | 2014-02-13 10:47:03 +0100 |
commit | 01dee35ebe1f3ab0e8a7f986015a9fa43a80b061 (patch) | |
tree | 18254dda9ad10bf6bee6737d4ee6e672a5b2809c /core/js/config.php | |
parent | a62b393d02fdfc49334b5ad4b1e847a711de741d (diff) | |
download | nextcloud-server-01dee35ebe1f3ab0e8a7f986015a9fa43a80b061.tar.gz nextcloud-server-01dee35ebe1f3ab0e8a7f986015a9fa43a80b061.zip |
Adds OC_Defaults values in javascript config
Diffstat (limited to 'core/js/config.php')
-rw-r--r-- | core/js/config.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/core/js/config.php b/core/js/config.php index 517ea1615a8..7ec0904ec3d 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', 60 * 60 * 24), '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() + ) ) ); |