From: kink Date: Sat, 7 Aug 2004 19:11:28 +0000 (+0000) Subject: Fix that the "Viewing message: x (y total)" always had "1 total" on last page, X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=043f9c1448dcf5049cf1c72384f935a262fb5210;p=squirrelmail.git Fix that the "Viewing message: x (y total)" always had "1 total" on last page, regardless of how many messages are in the mailbox. Thanks Jo Knox. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7837 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index 1f86622e..e9205e26 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -1483,7 +1483,7 @@ function get_msgcnt_str($start_msg, $end_msg, $num_msgs) { $result = sprintf(_("Viewing Messages: %s to %s (%s total)"), ''.$start_msg.'', ''.$end_msg.'', $num_msgs); } else if ($start_msg == $end_msg) { - $result = sprintf(_("Viewing Message: %s (1 total)"), ''.$start_msg.''); + $result = sprintf(_("Viewing Message: %s (%s total)"), ''.$start_msg.'', $num_msgs); } else { $result = '
'; } @@ -2046,4 +2046,5 @@ function attachSelectedMessages($imapConnection,$aMsgHeaders) { return $composesession; } +// vim: et ts=4 ?>