summaryrefslogtreecommitdiff
path: root/public_html
diff options
context:
space:
mode:
authorThomas <tb@woodcrest.local>2013-10-21 11:52:38 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-11-01 12:46:04 (GMT)
commit7fd21807c61e345f67f798760fe02821d0db19db (patch)
tree106d6fd00c3ba4bfb9953624e747f17c81aea7e4 /public_html
parent3c8d6c87f57b05b47ce89bf6cae78a898f725775 (diff)
downloadiRony-7fd21807c61e345f67f798760fe02821d0db19db.tar.gz
Disable console output by default
Diffstat (limited to 'public_html')
-rw-r--r--public_html/index.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/public_html/index.php b/public_html/index.php
index 8a86bd1..a702fef 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -67,7 +67,12 @@ $rcube->plugins->init($rcube);
$rcube->plugins->load_plugins($plugins, $required);
// convenience function, you know it well :-)
-function console() { call_user_func_array(array('rcube', 'console'), func_get_args()); }
+function console()
+{
+ global $rcube;
+ if ($rcube->config->get('kolab_dav_console', false))
+ call_user_func_array(array('rcube', 'console'), func_get_args());
+}
// Make sure this setting is turned on and reflects the root url of the *DAV server.