From b6da0b76afb5697685c35b8584631294cfc7b12f Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Wed, 07 Dec 2011 05:41:15 -0500 Subject: [PATCH] - Remove deprecated global $IMAP variable usage (#1488148) --- program/steps/mail/copy.inc | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/program/steps/mail/copy.inc b/program/steps/mail/copy.inc index 4cd51d8..edb6af3 100644 --- a/program/steps/mail/copy.inc +++ b/program/steps/mail/copy.inc @@ -5,7 +5,7 @@ | program/steps/mail/copy.inc | | | | This file is part of the Roundcube Webmail client | - | Copyright (C) 2005-2010, Roundcube Dev. - Switzerland | + | Copyright (C) 2005-2010, The Roundcube Dev Team | | Licensed under the GNU GPL | | | | PURPOSE: | @@ -29,11 +29,11 @@ $target = get_input_value('_target_mbox', RCUBE_INPUT_POST, true); $mbox = get_input_value('_mbox', RCUBE_INPUT_POST, true); - $copied = $IMAP->copy_message($uids, $target, $mbox); + $copied = $RCMAIL->imap->copy_message($uids, $target, $mbox); if (!$copied) { // send error message - $OUTPUT->show_message('errorcopying', 'error'); + rcmail_display_server_error('errorcopying'); $OUTPUT->send(); exit; } @@ -52,5 +52,3 @@ // send response $OUTPUT->send(); - - -- Gitblit v1.9.1