From 31518b0da90915b67211d810487dab6e7048ef35 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 19 Jan 2012 16:41:04 +0000 Subject: [PATCH] Like r109547, display file size in appropriate units on mimesearch --- includes/specials/SpecialMIMEsearch.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ) -- 2.20.1