From: Sam Reed Date: Thu, 19 Jan 2012 16:41:04 +0000 (+0000) Subject: Like r109547, display file size in appropriate units on mimesearch X-Git-Tag: 1.31.0-rc.0~25180 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=31518b0da90915b67211d810487dab6e7048ef35;p=lhc%2Fweb%2Fwiklou.git Like r109547, display file size in appropriate units on mimesearch --- diff --git a/includes/specials/SpecialMIMEsearch.php b/includes/specials/SpecialMIMEsearch.php index 2ce8ec4ff5..85f1a2e39c 100644 --- a/includes/specials/SpecialMIMEsearch.php +++ b/includes/specials/SpecialMIMEsearch.php @@ -95,8 +95,7 @@ class MIMEsearchPage extends QueryPage { $download = Linker::makeMediaLinkObj( $nt, wfMsgHtml( 'download' ) ); $lang = $this->getLanguage(); - $bytes = wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ), - $lang->formatNum( $result->img_size ) ); + $bytes = $fileSize = $lang->formatSize( $result->img_size ); $dimensions = htmlspecialchars( wfMsg( 'widthheight', $lang->formatNum( $result->img_width ), $lang->formatNum( $result->img_height )