Ver código fonte

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.

Thijs Kinkhorst 21 anos atrás
pai
commit
0a6c9cea2d
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      functions/mailbox_display.php

+ 2 - 1
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)"),
                         '<b>'.$start_msg.'</b>', '<b>'.$end_msg.'</b>', $num_msgs);
     } else if ($start_msg == $end_msg) {
-        $result = sprintf(_("Viewing Message: %s (1 total)"), '<b>'.$start_msg.'</b>');
+        $result = sprintf(_("Viewing Message: %s (%s total)"), '<b>'.$start_msg.'</b>', $num_msgs);
     } else {
         $result = '<br />';
     }
@@ -2046,4 +2046,5 @@ function attachSelectedMessages($imapConnection,$aMsgHeaders) {
     return $composesession;
 }
 
+// vim: et ts=4
 ?>