r55170 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55169‎ | r55170 | r55171 >
Date:09:45, 17 August 2009
Author:raymond
Status:ok
Tags:
Comment:
Use formatNum for some more numbers.
Modified paths:
  • /trunk/phase3/includes/specials/SpecialSearch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialSearch.php
@@ -526,7 +526,7 @@
527527 'search-result-size',
528528 array( 'parsemag', 'escape' ),
529529 $this->sk->formatSize( $byteSize ),
530 - $wordCount
 530+ $wgLang->formatNum( $wordCount )
531531 );
532532 $date = $wgLang->timeanddate( $timestamp );
533533
@@ -881,12 +881,17 @@
882882 }
883883 $out .= Xml::closeElement( 'ul' );
884884 $out .= Xml::closeElement('div') ;
885 -
 885+
886886 // Results-info
887887 if ( $resultsShown > 0 ) {
888888 if ( $totalNum > 0 ){
889 - $top = wfMsgExt('showingresultsheader', array( 'parseinline' ),
890 - $this->offset+1, $this->offset+$resultsShown, $totalNum, wfEscapeWikiText($term), $resultsShown );
 889+ $top = wfMsgExt( 'showingresultsheader', array( 'parseinline' ),
 890+ $wgLang->formatNum( $this->offset + 1 ),
 891+ $wgLang->formatNum( $this->offset + $resultsShown ),
 892+ $wgLang->formatNum( $totalNum ),
 893+ wfEscapeWikiText( $term ),
 894+ $wgLang->formatNum( $resultsShown )
 895+ );
891896 } elseif ( $resultsShown >= $this->limit ) {
892897 $top = wfShowingResults( $this->offset, $this->limit );
893898 } else {

Status & tagging log