Changeset ed5ed98 in github


Ignore:
Timestamp:
May 8, 2008 4:22:18 AM (5 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
583850d
Parents:
6153e20
Message:
  • make address_book_type option case insensitive
Location:
program/steps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • program/steps/addressbook/func.inc

    r6153e20 red5ed98  
    2323if (($source = get_input_value('_source', RCUBE_INPUT_GPC)) && isset($CONFIG['ldap_public'][$source])) 
    2424  $CONTACTS = new rcube_ldap($CONFIG['ldap_public'][$source]); 
    25 else if ($CONFIG['address_book_type'] == 'ldap') { 
     25else if (strtolower($CONFIG['address_book_type']) == 'ldap') { 
    2626    // Get the first LDAP address book. 
    2727    $source = key((array)$CONFIG['ldap_public']); 
     
    5050// add list of address sources to client env 
    5151$js_list = array(); 
    52 if ($CONFIG['address_book_type'] != 'ldap') { 
     52if (strtolower($CONFIG['address_book_type']) != 'ldap') { 
    5353  // We are using the DB address book, add it. 
    5454  $js_list = array("0" => array('id' => 0, 'readonly' => false)); 
     
    7777  // allow the following attributes to be added to the <ul> tag 
    7878  $out = '<ul' . create_attrib_string($attrib, array('style', 'class', 'id')) . ">\n"; 
    79   if ($CONFIG['address_book_type'] != 'ldap') { 
     79  if (strtolower($CONFIG['address_book_type']) != 'ldap') { 
    8080    $out .= sprintf($line_templ, 
    8181      'rcmli'.$local_id, 
  • program/steps/mail/addcontact.inc

    r6153e20 red5ed98  
    2525{ 
    2626  $CONTACTS = array(); 
    27   if ($CONFIG['address_book_type'] == 'ldap') { 
     27  if (strtolower($CONFIG['address_book_type']) == 'ldap') { 
    2828    // Use the first writable LDAP address book. 
    2929    foreach ($CONFIG["ldap_public"] as $id => $prop) { 
Note: See TracChangeset for help on using the changeset viewer.