r109548 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109547‎ | r109548 | r109549 >
Date:16:41, 19 January 2012
Author:reedy
Status:resolved
Tags:
Comment:
Like r109547, display file size in appropriate units on mimesearch
Modified paths:
  • /trunk/phase3/includes/specials/SpecialMIMEsearch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialMIMEsearch.php
@@ -95,8 +95,7 @@
9696
9797 $download = Linker::makeMediaLinkObj( $nt, wfMsgHtml( 'download' ) );
9898 $lang = $this->getLanguage();
99 - $bytes = wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ),
100 - $lang->formatNum( $result->img_size ) );
 99+ $bytes = $fileSize = $lang->formatSize( $result->img_size );
101100 $dimensions = htmlspecialchars( wfMsg( 'widthheight',
102101 $lang->formatNum( $result->img_width ),
103102 $lang->formatNum( $result->img_height )

Follow-up revisions

RevisionCommit summaryAuthorDate
r109550Add some escaping to r109547, 109548, 109549...reedy16:55, 19 January 2012

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r109547* (bug 33819) Display filesize on Special:NewFiles in appropriate unit.reedy16:37, 19 January 2012

Status & tagging log