summaryrefslogtreecommitdiff
path: root/public_html/index.php
diff options
context:
space:
mode:
authorThomas <tb@woodcrest.local>2013-10-21 11:52:38 (GMT)
committerThomas <tb@woodcrest.local>2013-10-21 11:52:38 (GMT)
commitfecd314fe86e48e6bf6384dd830fefccc0b53b84 (patch)
treeb459e8cfb2a0d7ae12d25c0888522bb8ce1460d3 /public_html/index.php
parentdc65d4b9ca42b10a924fa1b62942301299497548 (diff)
downloadiRony-fecd314fe86e48e6bf6384dd830fefccc0b53b84.tar.gz
Disable console output by default
Diffstat (limited to 'public_html/index.php')
-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 f27a17c..f4ebc77 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -71,7 +71,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.