summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-11-11 18:15:46 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-11-21 14:13:02 (GMT)
commit2e649d33da6564e31e1771577c884145b99c4727 (patch)
treee2cbf70d3a647dbad18c60a5db74e603965daba5
parent94eb4a7c350b8e530f1289576bf1c3b10675a9eb (diff)
downloadiRony-2e649d33da6564e31e1771577c884145b99c4727.tar.gz
Simplify code
-rw-r--r--public_html/index.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/public_html/index.php b/public_html/index.php
index 0886ebb..af6e032 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -74,13 +74,9 @@ if ($rcube->config->get('kolabdav_console') || $rcube->config->get('kolabdav_use
// convenience function, you know it well :-)
function console()
{
- global $rcube, $logger;
+ global $logger;
- // write to global console log
- if ($rcube->config->get('kolabdav_console', false)) {
- call_user_func_array(array('rcube', 'console'), func_get_args());
- }
- else if ($logger) {
+ if ($logger) {
call_user_func_array(array($logger, 'console'), func_get_args());
}
}