summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/mail/func.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-10-05 07:18:15 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-10-05 07:18:15 +0000
commit688e394cf0af9e05365742cbf2ec510ff7b3152a (patch)
tree279d9ba02a21c93f2aaf1a838c4dcceb9db63a77 /roundcubemail/program/steps/mail/func.inc
parente6c827cdaa0ee47465d39d79e571e9f8f8377661 (diff)
- removed deprecated rcube_add_label() and all uses
- code for 'show' action added in r1937 moved to show.inc git-svn-id: https://svn.roundcube.net/trunk@1939 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/func.inc')
-rw-r--r--roundcubemail/program/steps/mail/func.inc13
1 files changed, 2 insertions, 11 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc
index b7ef82ceb..a5ffb9d7b 100644
--- a/roundcubemail/program/steps/mail/func.inc
+++ b/roundcubemail/program/steps/mail/func.inc
@@ -69,19 +69,10 @@ if (empty($RCMAIL->action) || $RCMAIL->action == 'list')
$OUTPUT->set_env('junk_mailbox', $CONFIG['junk_mbox']);
if (!$OUTPUT->ajax_call)
- rcube_add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage');
+ $OUTPUT->add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage');
$OUTPUT->set_pagetitle(rcmail_localize_foldername($IMAP->get_mailbox_name()));
}
-else if ($RCMAIL->action == 'show')
- {
- // set current mailbox in client environment
- $OUTPUT->set_env('mailbox', $IMAP->get_mailbox_name());
- if ($CONFIG['trash_mbox'])
- $OUTPUT->set_env('trash_mailbox', $CONFIG['trash_mbox']);
- if (!$OUTPUT->ajax_call)
- rcube_add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage');
- }
/**
@@ -99,7 +90,7 @@ function rcmail_message_list($attrib)
$sort_order = $_SESSION['sort_order'];
// add some labels to client
- rcube_add_label('from', 'to');
+ $OUTPUT->add_label('from', 'to');
// get message headers
$a_headers = $IMAP->list_headers('', '', $sort_col, $sort_order);