summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/mail/getunread.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-07 10:41:15 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-07 10:41:15 +0000
commitea3d91249609d60de8ea570b2f7694fc283a175c (patch)
treebec327a12af45080ff03ed46cc7d665563af1aec /roundcubemail/program/steps/mail/getunread.inc
parent34e371d586aa6fb180cb799a541d4fdf57925df4 (diff)
- Remove deprecated global $IMAP variable usage (#1488148)
git-svn-id: https://svn.roundcube.net/trunk@5563 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/getunread.inc')
-rw-r--r--roundcubemail/program/steps/mail/getunread.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/mail/getunread.inc b/roundcubemail/program/steps/mail/getunread.inc
index 27ae5f747..39880b99b 100644
--- a/roundcubemail/program/steps/mail/getunread.inc
+++ b/roundcubemail/program/steps/mail/getunread.inc
@@ -19,11 +19,11 @@
*/
-$a_folders = $IMAP->list_mailboxes('', '*', 'mail');
+$a_folders = $RCMAIL->imap->list_mailboxes('', '*', 'mail');
if (!empty($a_folders))
{
- $current = $IMAP->get_mailbox_name();
+ $current = $RCMAIL->imap->get_mailbox_name();
$inbox = ($current == 'INBOX');
$check_all = (bool)$RCMAIL->config->get('check_all_folders');
@@ -33,7 +33,7 @@ if (!empty($a_folders))
if (!$check_all && $unseen_old !== null && $mbox_row != $current)
$unseen = $unseen_old;
else
- $unseen = $IMAP->messagecount($mbox_row, 'UNSEEN', $unseen_old === null);
+ $unseen = $RCMAIL->imap->messagecount($mbox_row, 'UNSEEN', $unseen_old === null);
if ($unseen || $unseen_old === null) {
$OUTPUT->command('set_unread_count', $mbox_row, $unseen, $inbox && $mbox_row == 'INBOX');