r56077 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56076‎ | r56077 | r56078 >
Date:23:32, 8 September 2009
Author:werdna
Status:ok
Tags:
Comment:
Add number formatting for numeric limits, regression in r55692
Modified paths:
  • /trunk/phase3/includes/Pager.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Pager.php
@@ -884,7 +884,8 @@
885885 # will be numeric, or $limit => $text, in which case the $value
886886 # will be a string.
887887 if( is_int( $value ) ){
888 - $limit = $text = $value;
 888+ $limit = $value;
 889+ $text = $wgLang->formatNum( $limit );
889890 } else {
890891 $limit = $key;
891892 $text = $value;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r55692Reimplement r55685, r55686, r55687, with correct parsing of the associative a...happy-melon11:30, 31 August 2009

Status & tagging log