Changeset 5b821526 in github


Ignore:
Timestamp:
May 1, 2008 8:59:39 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:
7ec922f
Parents:
e090a1a
Message:
  • fixed saving preferences after r1344
File:
1 edited

Legend:

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

    r197601e r5b821526  
    2828function rcmail_user_prefs_form($attrib) 
    2929  { 
    30   global $DB, $CONFIG; 
    31  
    32   $no_override = is_array($CONFIG['dont_override']) ? array_flip($CONFIG['dont_override']) : array(); 
     30  global $RCMAIL; 
     31  $config = $RCMAIL->config->all(); 
     32 
     33  $no_override = is_array($config['dont_override']) ? array_flip($config['dont_override']) : array(); 
    3334 
    3435  // add some labels to client 
     
    110111                    $field_id, 
    111112                    Q(rcube_label('timezone')), 
    112                     $select_timezone->show((string)$CONFIG['timezone'])); 
     113                    $select_timezone->show((string)$config['timezone'])); 
    113114    } 
    114115 
     
    121122                    $field_id, 
    122123                    Q(rcube_label('dstactive')), 
    123                     $input_dst->show($CONFIG['dst_active'])); 
     124                    $input_dst->show($config['dst_active'])); 
    124125    } 
    125126 
     
    133134                    $field_id, 
    134135                    Q(rcube_label('pagesize')), 
    135                     $input_pagesize->show($CONFIG['pagesize'])); 
     136                    $input_pagesize->show($config['pagesize'])); 
    136137    } 
    137138 
     
    145146                    $field_id, 
    146147                    Q(rcube_label('prettydate')), 
    147                     $input_prettydate->show($CONFIG['prettydate']?1:0)); 
     148                    $input_prettydate->show($config['prettydate']?1:0)); 
    148149    } 
    149150 
     
    157158                    $field_id, 
    158159                    Q(rcube_label('preferhtml')), 
    159                     $input_pagesize->show($CONFIG['prefer_html']?1:0)); 
     160                    $input_pagesize->show($config['prefer_html']?1:0)); 
    160161    } 
    161162 
     
    168169                    $field_id, 
    169170                    Q(rcube_label('htmleditor')), 
    170                     $input_htmleditor->show($CONFIG['htmleditor']?1:0)); 
     171                    $input_htmleditor->show($config['htmleditor']?1:0)); 
    171172    } 
    172173 
     
    179180                    $field_id, 
    180181                    Q(rcube_label('previewpane')), 
    181                     $input_preview->show($CONFIG['preview_pane']?1:0)); 
     182                    $input_preview->show($config['preview_pane']?1:0)); 
    182183    } 
    183184 
    184185  $out .= "</table></fieldset>\n<fieldset><legend>" . Q(rcube_label('serversettings')) . "</legend>\n<table" . $attrib_str . ">\n\n"; 
    185186                   
    186   if (!empty($CONFIG['drafts_mbox']) && !isset($no_override['draft_autosave'])) 
     187  if (!empty($config['drafts_mbox']) && !isset($no_override['draft_autosave'])) 
    187188    { 
    188189    $field_id = 'rcmfd_autosave'; 
     
    195196                    $field_id, 
    196197                    Q(rcube_label('autosavedraft')), 
    197                     $select_autosave->show($CONFIG['draft_autosave'])); 
     198                    $select_autosave->show($config['draft_autosave'])); 
    198199    } 
    199200 
     
    206207                    $field_id, 
    207208                    Q(rcube_label('logoutclear')), 
    208                     $input_purge->show($CONFIG['logout_purge']?1:0)); 
     209                    $input_purge->show($config['logout_purge']?1:0)); 
    209210    } 
    210211 
     
    217218                    $field_id, 
    218219                    Q(rcube_label('logoutcompact')), 
    219                     $input_expunge->show($CONFIG['logout_expunge']?1:0)); 
     220                    $input_expunge->show($config['logout_expunge']?1:0)); 
    220221    } 
    221222 
Note: See TracChangeset for help on using the changeset viewer.