From: Michael M Slusarz Date: Mon, 7 Sep 2009 10:24:54 +0000 (-0600) Subject: Improved empty search messages display X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=41e29f4afa4c7788a5ecbf1e1a8c2df1688618c6;p=horde.git Improved empty search messages display --- diff --git a/imp/mailbox.php b/imp/mailbox.php index 1a38d48f4..3f4f4a006 100644 --- a/imp/mailbox.php +++ b/imp/mailbox.php @@ -236,11 +236,6 @@ $mbox_info = $imp_mailbox->getMailboxArray(range($pageOb['begin'], $pageOb['end' /* Determine sorting preferences. */ $sortpref = IMP::getSort($imp_mbox['mailbox']); -/* If search results are empty, inform the user. */ -if ($search_mbox && !$pageOb['msgcount']) { - $notification->push(_("No messages matched your search."), 'horde.warning'); -} - /* Cache this value since we use it alot on this page. */ $graphicsdir = $registry->getImageDir('horde'); @@ -472,6 +467,7 @@ if (empty($pageOb['end'])) { $empty_template = new Horde_Template(); $empty_template->setOption('gettext', true); + $empty_template->set('search_mbox', $search_mbox); echo $empty_template->fetch(IMP_TEMPLATES . '/mailbox/empty_mailbox.html'); require $registry->get('templates', 'horde') . '/common-footer.inc'; exit; diff --git a/imp/templates/mailbox/empty_mailbox.html b/imp/templates/mailbox/empty_mailbox.html index 06bc4fc8d..2dfa25234 100644 --- a/imp/templates/mailbox/empty_mailbox.html +++ b/imp/templates/mailbox/empty_mailbox.html @@ -1,3 +1,3 @@
- There are no messages in this mailbox. + No messages matched your search criteria.There are no messages in this mailbox.