Set 'global' before 'sql'
This commit is contained in:
parent
2f22542893
commit
942ecc743a
1 changed files with 12 additions and 12 deletions
|
@ -33,6 +33,18 @@ class rcube_kolab
|
|||
|
||||
$rcmail = rcmail::get_instance();
|
||||
|
||||
// get password of logged user
|
||||
$pwd = $rcmail->decrypt($_SESSION['password']);
|
||||
|
||||
// load ldap credentials from local config
|
||||
$conf['kolab'] = (array) $rcmail->config->get('kolab');
|
||||
|
||||
// Set global Horde config (e.g. Cache settings)
|
||||
if (!empty($conf['kolab']['global'])) {
|
||||
$conf = array_merge($conf, $conf['kolab']['global']);
|
||||
unset($conf['kolab']['global']);
|
||||
}
|
||||
|
||||
// Set Horde configuration (for cache db)
|
||||
$dsnw = MDB2::parseDSN($rcmail->config->get('db_dsnw'));
|
||||
$dsnr = MDB2::parseDSN($rcmail->config->get('db_dsnr'));
|
||||
|
@ -46,18 +58,6 @@ class rcube_kolab
|
|||
$conf['sql']['splitread'] = true;
|
||||
}
|
||||
|
||||
// get password of logged user
|
||||
$pwd = $rcmail->decrypt($_SESSION['password']);
|
||||
|
||||
// load ldap credentials from local config
|
||||
$conf['kolab'] = (array) $rcmail->config->get('kolab');
|
||||
|
||||
// Set global Horde config (e.g. Cache settings)
|
||||
if (!empty($conf['kolab']['global'])) {
|
||||
$conf = array_merge($conf, $conf['kolab']['global']);
|
||||
unset($conf['kolab']['global']);
|
||||
}
|
||||
|
||||
// Re-set LDAP/IMAP host config
|
||||
$ldap = array('server' => 'ldap://' . $_SESSION['imap_host'] . ':389');
|
||||
$imap = array('server' => $_SESSION['imap_host'], 'port' => $_SESSION['imap_port']);
|
||||
|
|
Loading…
Add table
Reference in a new issue