From 6dc1a6645168e5e777a3db97b92d360a9e6b0c86 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Mon, 7 Apr 2014 17:01:30 +0200 Subject: Fix page title and folder selection in search mode --- program/steps/mail/func.inc | 2 +- program/steps/mail/search.inc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'program/steps') diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 0d6f9cdfc..4ff8fcb30 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -420,7 +420,7 @@ function rcmail_js_message_list($a_headers, $insert_top=false, $a_show_cols=null $OUTPUT->command('set_message_coltypes', $a_show_cols, $thead, $smart_col); - if ($multifolder) { + if ($multifolder && $_SESSION['search_scope'] == 'all') { $OUTPUT->command('select_folder', ''); } diff --git a/program/steps/mail/search.inc b/program/steps/mail/search.inc index 941e68bd9..797c8fcd8 100644 --- a/program/steps/mail/search.inc +++ b/program/steps/mail/search.inc @@ -170,4 +170,5 @@ $OUTPUT->set_env('messagecount', $count); $OUTPUT->set_env('pagecount', ceil($count/$RCMAIL->storage->get_pagesize())); $OUTPUT->set_env('exists', $RCMAIL->storage->count($mbox_name, 'EXISTS')); $OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($count, 1), $mbox); +$OUTPUT->set_pagetitle($RCMAIL->gettext(array('name' => 'searchfor', 'vars' => array('q' => $str)))); $OUTPUT->send(); -- cgit v1.2.3