[Pkg-owncloud-commits] [owncloud] 02/44: Allow apps to add/modify config js output via hook.
David Prévot
taffit at moszumanska.debian.org
Fri Mar 7 13:27:22 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 0d2482a1a9922ada54c9642ae9336fc3bdcf1af8
Author: ringmaster <epithet at gmail.com>
Date: Thu Feb 20 18:13:27 2014 -0500
Allow apps to add/modify config js output via hook.
---
core/js/config.php | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/core/js/config.php b/core/js/config.php
index b6875fb..40e17b3 100644
--- a/core/js/config.php
+++ b/core/js/config.php
@@ -10,8 +10,8 @@
header("Content-type: text/javascript");
// Disallow caching
-header("Cache-Control: no-cache, must-revalidate");
-header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
+header("Cache-Control: no-cache, must-revalidate");
+header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
// Enable l10n support
$l = OC_L10N::get('core');
@@ -61,7 +61,10 @@ $array = array(
'session_keepalive' => \OCP\Config::getSystemValue('session_keepalive', true)
)
)
- );
+);
+
+// Allow hooks to modify the output values
+OC_Hook::emit('\OCP\Config', 'js', array('array' => &$array));
// Echo it
foreach ($array as $setting => $value) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list