From: Sam Reed Date: Thu, 19 Jan 2012 16:37:54 +0000 (+0000) Subject: * (bug 33819) Display filesize on Special:NewFiles in appropriate unit. X-Git-Tag: 1.31.0-rc.0~25181 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=4228cdc87d3c90cd683965a7bd5efb69cf3e2172;p=lhc%2Fweb%2Fwiklou.git * (bug 33819) Display filesize on Special:NewFiles in appropriate unit. --- 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' ); }