From c9921fca64e04f8fd8de7eeda7fbb6b587d4c34e Mon Sep 17 00:00:00 2001 From: thomasb Date: Wed, 19 Sep 2007 06:29:28 +0000 Subject: Allow vars and PHP code in templates; improved page title; fixed #1484395 git-svn-id: https://svn.roundcube.net/trunk@801 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/func.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'roundcubemail/program/steps/mail/func.inc') diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 9f4c714c4..0712ef8df 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -75,6 +75,10 @@ if ($CONFIG['junk_mbox']) 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 @@ function rcmail_message_list($attrib) // no messages in this mailbox if (!sizeof($a_headers)) - { - $out .= sprintf('%s', - sizeof($a_show_cols)+2, - Q(rcube_label('nomessagesfound'))); - } + $OUTPUT->show_message('nomessagesfound', 'notice'); $a_js_message_arr = array(); -- cgit v1.2.3