Changeset 112c9133 in github


Ignore:
Timestamp:
Oct 5, 2008 3:18:15 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:
6afdd69
Parents:
1bb6541
Message:
  • removed deprecated rcube_add_label() and all uses
  • code for 'show' action added in r1937 moved to show.inc
Location:
program
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • program/include/main.inc

    rd6497f4 r112c9133  
    131131  return $app->url((array)$p + array('_action' => $action, 'task' => $task)); 
    132132} 
    133  
    134  
    135 /** 
    136  * Add a localized label to the client environment 
    137  * @deprecated 
    138  */ 
    139 function rcube_add_label() 
    140   { 
    141   global $OUTPUT; 
    142    
    143   $arg_list = func_get_args(); 
    144   foreach ($arg_list as $i => $name) 
    145     $OUTPUT->add_label($name); 
    146   } 
    147133 
    148134 
     
    914900 
    915901  // add some labels to client 
    916   rcube_add_label('purgefolderconfirm'); 
    917   rcube_add_label('deletemessagesconfirm'); 
     902  $RCMAIL->output->add_label('purgefolderconfirm', 'deletemessagesconfirm'); 
    918903   
    919904  $type = $attrib['type'] ? $attrib['type'] : 'ul'; 
  • program/steps/addressbook/edit.inc

    rf92aba3 r112c9133  
    4444 
    4545  // add some labels to client 
    46   rcube_add_label('noemailwarning'); 
    47   rcube_add_label('nonamewarning'); 
     46  $OUTPUT->add_label('noemailwarning', 'nonamewarning'); 
    4847 
    4948  list($form_start, $form_end) = get_form_tags($attrib); 
  • program/steps/addressbook/func.inc

    r95fcc33 r112c9133  
    115115   
    116116  // add some labels to client 
    117   rcube_add_label('deletecontactconfirm'); 
     117  $OUTPUT->add_label('deletecontactconfirm'); 
    118118   
    119119  return $out; 
  • program/steps/mail/compose.inc

    rcf6a833 r112c9133  
    8282 
    8383// add some labels to client 
    84 rcube_add_label('nosubject', 'nosenderwarning', 'norecipientwarning', 'nosubjectwarning', 'nobodywarning', 'notsentwarning', 'savingmessage', 'sendingmessage', 'messagesaved', 'converting'); 
     84$OUTPUT->add_label('nosubject', 'nosenderwarning', 'norecipientwarning', 'nosubjectwarning', 'nobodywarning', 'notsentwarning', 'savingmessage', 'sendingmessage', 'messagesaved', 'converting'); 
    8585 
    8686// add config parameter to client script 
     
    478478      JS_OBJECT_NAME), 'foot'); 
    479479 
    480     rcube_add_label('checking'); 
     480    $OUTPUT->add_label('checking'); 
    481481    $OUTPUT->set_env('spellcheck_langs', join(',', $editor_lang_set)); 
    482482  } 
  • program/steps/mail/func.inc

    ra862043 r112c9133  
    7070 
    7171  if (!$OUTPUT->ajax_call) 
    72     rcube_add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage'); 
     72    $OUTPUT->add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage'); 
    7373 
    7474  $OUTPUT->set_pagetitle(rcmail_localize_foldername($IMAP->get_mailbox_name())); 
    75   } 
    76 else if ($RCMAIL->action == 'show') 
    77   { 
    78   // set current mailbox in client environment 
    79   $OUTPUT->set_env('mailbox', $IMAP->get_mailbox_name()); 
    80   if ($CONFIG['trash_mbox']) 
    81     $OUTPUT->set_env('trash_mailbox', $CONFIG['trash_mbox']); 
    82   if (!$OUTPUT->ajax_call) 
    83     rcube_add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage'); 
    8475  } 
    8576 
     
    10091   
    10192  // add some labels to client 
    102   rcube_add_label('from', 'to'); 
     93  $OUTPUT->add_label('from', 'to'); 
    10394 
    10495  // get message headers 
  • program/steps/mail/show.inc

    r2cc1cac r112c9133  
    7272  // give message uid to the client 
    7373  $OUTPUT->set_env('uid', $MESSAGE->uid); 
     74  // set environement 
    7475  $OUTPUT->set_env('safemode', $MESSAGE->is_safe); 
    7576  $OUTPUT->set_env('sender', $MESSAGE->sender['string']); 
    7677  $OUTPUT->set_env('permaurl', rcmail_url('show', array('_uid' => $MESSAGE->uid, '_mbox' => $mbox_name))); 
    7778  $OUTPUT->set_env('mailbox', $mbox_name); 
    78    
     79  if ($CONFIG['trash_mbox']) 
     80    $OUTPUT->set_env('trash_mailbox', $CONFIG['trash_mbox']); 
     81  if (!$OUTPUT->ajax_call) 
     82    $OUTPUT->add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage'); 
     83     
    7984  // check for unset disposition notification 
    8085  if ($MESSAGE->headers->mdn_to && 
     
    9398    else if (empty($CONFIG['mdn_requests'])) 
    9499    { 
    95       rcube_add_label('mdnrequest'); 
     100      $OUTPUT->add_label('mdnrequest'); 
    96101      $OUTPUT->set_env('mdn_request', true); 
    97102    } 
  • program/steps/settings/func.inc

    r9b3d7f74 r112c9133  
    3131 
    3232  // add some labels to client 
    33   rcube_add_label('nopagesizewarning'); 
     33  $RCMAIL->output->add_label('nopagesizewarning'); 
    3434   
    3535  list($form_start, $form_end) = get_form_tags($attrib, 'save-prefs'); 
Note: See TracChangeset for help on using the changeset viewer.