From 5eee009671d773cb3ebef5beca6ad47c919ac4c7 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Wed, 19 Sep 2007 02:29:28 -0400 Subject: [PATCH] Allow vars and PHP code in templates; improved page title; fixed #1484395 --- program/steps/mail/func.inc | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 9f4c714..0712ef8 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -75,6 +75,10 @@ if (!$OUTPUT->ajax_call) rcube_add_label('checkingmail', 'deletemessage', 'movemessagetotrash'); +// set page title +if (empty($_action) || $_action == 'list') + $OUTPUT->set_pagetitle(rcube_charset_convert($IMAP->get_mailbox_name(), 'UTF-7')); + // return the message list as HTML table @@ -189,11 +193,7 @@ // no messages in this mailbox if (!sizeof($a_headers)) - { - $out .= sprintf('<tr><td colspan="%d">%s</td></tr>', - sizeof($a_show_cols)+2, - Q(rcube_label('nomessagesfound'))); - } + $OUTPUT->show_message('nomessagesfound', 'notice'); $a_js_message_arr = array(); -- Gitblit v1.9.1