diff options
author | alecpl <alec@alec.pl> | 2011-12-07 10:41:15 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-12-07 10:41:15 +0000 |
commit | b6da0b76afb5697685c35b8584631294cfc7b12f (patch) | |
tree | da81d13466eccdfe287075e5a77ee37ab485a1bc /program/steps/mail/get.inc | |
parent | 7e263ea2048721482c00db65d4511f00c4c7b1d4 (diff) |
- Remove deprecated global $IMAP variable usage (#1488148)
Diffstat (limited to 'program/steps/mail/get.inc')
-rw-r--r-- | program/steps/mail/get.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc index 1e0583cf8..cbe59346f 100644 --- a/program/steps/mail/get.inc +++ b/program/steps/mail/get.inc @@ -68,7 +68,7 @@ if (!empty($_GET['_uid'])) { if (!empty($_GET['_frame'])) { if (($part_id = get_input_value('_part', RCUBE_INPUT_GPC)) && ($part = $MESSAGE->mime_parts[$part_id]) && $part->filename) $OUTPUT->set_pagetitle($part->filename); - + $OUTPUT->send('messagepart'); exit; } @@ -117,7 +117,7 @@ else if (strlen($pid = get_input_value('_part', RCUBE_INPUT_GET))) { if (!rcmail_mem_check($part->size * 10)) { $out = '<body>' . rcube_label('messagetoobig'). ' ' . html::a('?_task=mail&_action=get&_download=1&_uid='.$MESSAGE->uid.'&_part='.$part->mime_id - .'&_mbox='. urlencode($IMAP->get_mailbox_name()), rcube_label('download')) . '</body></html>'; + .'&_mbox='. urlencode($RCMAIL->imap->get_mailbox_name()), rcube_label('download')) . '</body></html>'; } else { // get part body if not available @@ -157,7 +157,7 @@ else if (strlen($pid = get_input_value('_part', RCUBE_INPUT_GET))) { $stdout = fopen('php://output', 'w'); stream_filter_register('rcube_content', 'rcube_content_filter') or die('Failed to register content filter'); stream_filter_append($stdout, 'rcube_content'); - $IMAP->get_message_part($MESSAGE->uid, $part->mime_id, $part, false, $stdout); + $RCMAIL->imap->get_message_part($MESSAGE->uid, $part->mime_id, $part, false, $stdout); } } else { @@ -165,7 +165,7 @@ else if (strlen($pid = get_input_value('_part', RCUBE_INPUT_GET))) { if ($part->body) echo $part->body; else if ($part->size) - $IMAP->get_message_part($MESSAGE->uid, $part->mime_id, $part, true); + $RCMAIL->imap->get_message_part($MESSAGE->uid, $part->mime_id, $part, true); } } |