Add number formatting for numeric limits, regression in r55692
authorAndrew Garrett <werdna@users.mediawiki.org>
Tue, 8 Sep 2009 23:32:56 +0000 (23:32 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Tue, 8 Sep 2009 23:32:56 +0000 (23:32 +0000)
includes/Pager.php

index 3a129e7..adfb14a 100644 (file)
@@ -884,7 +884,8 @@ abstract class TablePager extends IndexPager {
                        # will be numeric, or $limit => $text, in which case the $value
                        # will be a string.
                        if( is_int( $value ) ){
-                               $limit = $text = $value;
+                               $limit = $value;
+                               $text = $wgLang->formatNum( $limit );
                        } else {
                                $limit = $key;
                                $text = $value;