summaryrefslogtreecommitdiff
path: root/program/steps/mail/list.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-05-06 07:39:57 +0000
committeralecpl <alec@alec.pl>2010-05-06 07:39:57 +0000
commit9800a825e7a98d3bd857f168e697555259098932 (patch)
tree54938ef6e0e7fe2e89d4302b9234f2e7416cd13b /program/steps/mail/list.inc
parent1f019c8e5886461eb1ab0c053d88527d45ccacde (diff)
- improve performance and consistency by setting all list-related env data in list action only
Diffstat (limited to 'program/steps/mail/list.inc')
-rw-r--r--program/steps/mail/list.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/program/steps/mail/list.inc b/program/steps/mail/list.inc
index 3b8c39fc8..7682b8ca4 100644
--- a/program/steps/mail/list.inc
+++ b/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();
?>
+