diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-09-03 13:01:38 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-09-03 13:01:38 +0200 |
commit | 02f762831461233809c95189b1b4e9a647e22944 (patch) | |
tree | eb48901d23b7e065ce82979d5af141fa3e57c6b3 /program/steps/mail/search.inc | |
parent | 334bc9792789732fd5657df5abb233ad0c2da512 (diff) |
Fix page title when using search filter (#1490023)
Diffstat (limited to 'program/steps/mail/search.inc')
-rw-r--r-- | program/steps/mail/search.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/program/steps/mail/search.inc b/program/steps/mail/search.inc index b50593480..d88e57568 100644 --- a/program/steps/mail/search.inc +++ b/program/steps/mail/search.inc @@ -187,8 +187,6 @@ else { } } -$OUTPUT->set_pagetitle($RCMAIL->gettext(array('name' => 'searchfor', 'vars' => array('q' => $str)))); - // update message count display $OUTPUT->set_env('search_request', $search_str ? $search_request : ''); $OUTPUT->set_env('search_filter', $_SESSION['search_filter']); @@ -198,6 +196,13 @@ $OUTPUT->set_env('pagecount', ceil($count/$RCMAIL->storage->get_pagesize())); $OUTPUT->set_env('exists', $mbox === null ? 0 : $RCMAIL->storage->count($mbox, 'EXISTS')); $OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($count, 1), $mbox); +rcmail_list_pagetitle(); + +// update unseen messages count +if (empty($search_str)) { + rcmail_send_unread_count($mbox, false, empty($result_h) ? 0 : null); +} + if (!$result->incomplete) { $OUTPUT->command('set_quota', $RCMAIL->quota_content(null, $result->multi ? 'INBOX' : $mbox)); } |