diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-10-05 07:18:15 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-10-05 07:18:15 +0000 |
| commit | 688e394cf0af9e05365742cbf2ec510ff7b3152a (patch) | |
| tree | 279d9ba02a21c93f2aaf1a838c4dcceb9db63a77 /roundcubemail/program/steps/mail/show.inc | |
| parent | e6c827cdaa0ee47465d39d79e571e9f8f8377661 (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/show.inc')
| -rw-r--r-- | roundcubemail/program/steps/mail/show.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/show.inc b/roundcubemail/program/steps/mail/show.inc index 941c3cce2..d8478d569 100644 --- a/roundcubemail/program/steps/mail/show.inc +++ b/roundcubemail/program/steps/mail/show.inc @@ -71,11 +71,16 @@ if ($_GET['_uid']) { // give message uid to the client $OUTPUT->set_env('uid', $MESSAGE->uid); + // set environement $OUTPUT->set_env('safemode', $MESSAGE->is_safe); $OUTPUT->set_env('sender', $MESSAGE->sender['string']); $OUTPUT->set_env('permaurl', rcmail_url('show', array('_uid' => $MESSAGE->uid, '_mbox' => $mbox_name))); $OUTPUT->set_env('mailbox', $mbox_name); - + if ($CONFIG['trash_mbox']) + $OUTPUT->set_env('trash_mailbox', $CONFIG['trash_mbox']); + if (!$OUTPUT->ajax_call) + $OUTPUT->add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage'); + // check for unset disposition notification if ($MESSAGE->headers->mdn_to && !$MESSAGE->headers->mdn_sent && @@ -92,7 +97,7 @@ if ($_GET['_uid']) { } else if (empty($CONFIG['mdn_requests'])) { - rcube_add_label('mdnrequest'); + $OUTPUT->add_label('mdnrequest'); $OUTPUT->set_env('mdn_request', true); } } |
