Make sure that the settings roundcube knows about are exposed to

the Horde_Kolab_* libraries used by the kolab_* roundcube plugins.

Solves #108
This commit is contained in:
Jeroen van Meeuwen (Kolab Systems) 2011-06-09 23:48:10 +01:00
parent 2ff0adf9e8
commit 9eee733ed2

View file

@ -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']);