From f5d2eef55c89b7f1a5549704705c25fd7f0c0185 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Tue, 31 Dec 2013 07:58:29 -0500 Subject: [PATCH] More CS fixes, replace global $CONFIG usage with $RCMAIL->config->get() --- program/steps/mail/pagenav.inc | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/program/steps/mail/pagenav.inc b/program/steps/mail/pagenav.inc index 59c131f..74cca88 100644 --- a/program/steps/mail/pagenav.inc +++ b/program/steps/mail/pagenav.inc @@ -35,14 +35,19 @@ $OUTPUT->set_env('prev_uid', $prev); $OUTPUT->command('enable_command', 'previousmessage', 'firstmessage', true); } + if ($next) { $OUTPUT->set_env('next_uid', $next); $OUTPUT->command('enable_command', 'nextmessage', 'lastmessage', true); } -if ($first) + +if ($first) { $OUTPUT->set_env('first_uid', $first); -if ($last) +} + +if ($last) { $OUTPUT->set_env('last_uid', $last); +} // Don't need a real messages count value $OUTPUT->set_env('messagecount', 1); @@ -54,4 +59,3 @@ ))); $OUTPUT->send(); - -- Gitblit v1.9.1