Merge "Format count of files on Special:ListFiles as number"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 23 Apr 2016 16:02:11 +0000 (16:02 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 23 Apr 2016 16:02:11 +0000 (16:02 +0000)
includes/specials/pagers/ImageListPager.php

index 45fe5c4..40706fa 100644 (file)
@@ -490,7 +490,7 @@ class ImageListPager extends TablePager {
                        case 'img_description':
                                return Linker::formatComment( $value );
                        case 'count':
-                               return intval( $value ) + 1;
+                               return $this->getLanguage()->formatNum( intval( $value ) + 1 );
                        case 'top':
                                // Messages: listfiles-latestversion-yes, listfiles-latestversion-no
                                return $this->msg( 'listfiles-latestversion-' . $value );