summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/mail/list.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-05-06 07:39:57 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-05-06 07:39:57 +0000
commit3f6959dbbfb64f59563e769c5acd4bee42bbc81e (patch)
tree48e5025d816bec0f0b74cc97cb7a8b0a27ca3f74 /roundcubemail/program/steps/mail/list.inc
parent77915733634c6b377dd8f3294d0d72d170f51b8f (diff)
- improve performance and consistency by setting all list-related env data in list action only
git-svn-id: https://svn.roundcube.net/trunk@3595 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/list.inc')
-rw-r--r--roundcubemail/program/steps/mail/list.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/mail/list.inc b/roundcubemail/program/steps/mail/list.inc
index 3b8c39fc8..7682b8ca4 100644
--- a/roundcubemail/program/steps/mail/list.inc
+++ b/roundcubemail/program/steps/mail/list.inc
@@ -78,6 +78,7 @@ $pages = ceil($count/$IMAP->page_size);
$OUTPUT->set_env('messagecount', $count);
$OUTPUT->set_env('pagecount', $pages);
$OUTPUT->set_env('threading', (bool) $IMAP->threading);
+$OUTPUT->set_env('current_page', $IMAP->list_page);
$OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($count));
$OUTPUT->command('set_mailboxname', rcmail_get_mailbox_name_text());
@@ -97,3 +98,4 @@ else
$OUTPUT->send();
?>
+