summaryrefslogtreecommitdiff
path: root/program/steps/mail/pagenav.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-12-31 13:58:29 +0100
committerAleksander Machniak <alec@alec.pl>2013-12-31 13:58:29 +0100
commitf5d2eef55c89b7f1a5549704705c25fd7f0c0185 (patch)
treecadb85945d32237ea37d50ad0b8d400d6b19d2e2 /program/steps/mail/pagenav.inc
parentddc161721cdec783d58b43a265854b4eac388c13 (diff)
More CS fixes, replace global $CONFIG usage with $RCMAIL->config->get()
Diffstat (limited to 'program/steps/mail/pagenav.inc')
-rw-r--r--program/steps/mail/pagenav.inc10
1 files changed, 7 insertions, 3 deletions
diff --git a/program/steps/mail/pagenav.inc b/program/steps/mail/pagenav.inc
index 59c131f69..74cca88f2 100644
--- a/program/steps/mail/pagenav.inc
+++ b/program/steps/mail/pagenav.inc
@@ -35,14 +35,19 @@ if ($prev) {
$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->command('set_rowcount', $RCMAIL->gettext(array(
)));
$OUTPUT->send();
-