From 4228cdc87d3c90cd683965a7bd5efb69cf3e2172 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 19 Jan 2012 16:37:54 +0000 Subject: [PATCH] * (bug 33819) Display filesize on Special:NewFiles in appropriate unit. --- RELEASE-NOTES-1.19 | 1 + includes/ImageGallery.php | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index a783d45a45..740857fcf3 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -228,6 +228,7 @@ production. of whatever the query value contains. * (bug 4438) Add CSS hook for current WikiPage action. * (bug 33703) Common border-bottom color for should inherit default (text) color +* (bug 33819) Display filesize on Special:NewFiles in appropriate unit. === API changes in 1.19 === * Made action=edit less likely to return "unknownerror", by returning the actual error diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 09f9ba883c..68a5a20cff 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -314,8 +314,7 @@ class ImageGallery { if( $this->mShowBytes ) { if( $img ) { - $fileSize = wfMsgExt( 'nbytes', array( 'parsemag', 'escape'), - $wgLang->formatNum( $img->getSize() ) ); + $fileSize = $wgLang->formatSize( $img->getSize() ); } else { $fileSize = wfMsgHtml( 'filemissing' ); } -- 2.20.1