summaryrefslogtreecommitdiff
path: root/public_html
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-05-29 10:50:02 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-05-29 10:50:02 (GMT)
commitabb7ec1a168ac313c45c14a8bbd1477206bd8d71 (patch)
tree71c33a9ef5f05b1466266f9aef1a8dd6f1a24ca5 /public_html
parentad9b5530aad39c81d7f978acf192382930e75462 (diff)
downloadiRony-abb7ec1a168ac313c45c14a8bbd1477206bd8d71.tar.gz
Replace CacheAPC with rcube_cache_shared (Bug #1894)
Improve login process, do not require kolab_auth plugin
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 7a9cf8c..d201ed8 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -60,8 +60,13 @@ require_once KOLAB_DAV_ROOT . '/lib/Roundcube/bootstrap.php';
// Roundcube framework initialization
$rcube = rcube::get_instance(rcube::INIT_WITH_DB | rcube::INIT_WITH_PLUGINS);
$rcube->config->load_from_file(RCUBE_CONFIG_DIR . 'dav.inc.php');
+
+// Load plugins
+$plugins = (array)$rcube->config->get('kolabdav_plugins', array('kolab_auth'));
+$required = array('libkolab', 'libcalendaring');
+
$rcube->plugins->init($rcube);
-$rcube->plugins->load_plugins(array('libkolab','libcalendaring'));
+$rcube->plugins->load_plugins($plugins, $required);
// convenience function, you know it well :-)
function console() { call_user_func_array(array('rcube', 'console'), func_get_args()); }