Give option to hide DB address book with addressbook plugin

pull/38/head
Jean-Louis Dupond 12 years ago
parent 3715694887
commit 5526f98dca

@ -514,10 +514,12 @@ $rcmail_config['undo_timeout'] = 0;
// ---------------------------------- // ----------------------------------
// This indicates which type of address book to use. Possible choises: // This indicates which type of address book to use. Possible choises:
// 'sql' (default) and 'ldap'. // 'sql' (default), 'ldap' and ''.
// If set to 'ldap' then it will look at using the first writable LDAP // If set to 'ldap' then it will look at using the first writable LDAP
// address book as the primary address book and it will not display the // address book as the primary address book and it will not display the
// SQL address book in the 'Address Book' view. // SQL address book in the 'Address Book' view.
// If set to '' then no address book will be displayed or only the
// addressbook which is created by a plugin (like CardDAV).
$rcmail_config['address_book_type'] = 'sql'; $rcmail_config['address_book_type'] = 'sql';
// In order to enable public ldap search, configure an array like the Verisign // In order to enable public ldap search, configure an array like the Verisign

@ -258,8 +258,8 @@ class rcmail extends rcube
$autocomplete = (array) $this->config->get('autocomplete_addressbooks'); $autocomplete = (array) $this->config->get('autocomplete_addressbooks');
$list = array(); $list = array();
// We are using the DB address book // We are using the DB address book or a plugin address book
if ($abook_type != 'ldap') { if ($abook_type != 'ldap' && $abook_type != '') {
if (!isset($this->address_books['0'])) if (!isset($this->address_books['0']))
$this->address_books['0'] = new rcube_contacts($this->db, $this->get_user_id()); $this->address_books['0'] = new rcube_contacts($this->db, $this->get_user_id());
$list['0'] = array( $list['0'] = array(

Loading…
Cancel
Save