From 9eee733ed2cc43f9bf5cce84a1d80adee4b6789c Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" Date: Thu, 9 Jun 2011 23:48:10 +0100 Subject: [PATCH] Make sure that the settings roundcube knows about are exposed to the Horde_Kolab_* libraries used by the kolab_* roundcube plugins. Solves #108 --- plugins/kolab_core/rcube_kolab.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/kolab_core/rcube_kolab.php b/plugins/kolab_core/rcube_kolab.php index 82428eff..7c837de0 100644 --- a/plugins/kolab_core/rcube_kolab.php +++ b/plugins/kolab_core/rcube_kolab.php @@ -33,6 +33,11 @@ class rcube_kolab $rcmail = rcmail::get_instance(); + // Set Horde configuration + $GLOBALS['conf']['sql'] = MDB2::parseDSN($rcmail->config->get('db_dsnw')); + $GLOBALS['conf']['sql']['charset'] = 'utf-8'; + $GLOBALS['conf']['sql']['phptype'] = 'mysql'; + // get password of logged user $pwd = $rcmail->decrypt($_SESSION['password']);