r69513 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69512‎ | r69513 | r69514 >
Date:17:14, 18 July 2010
Author:aaron
Status:ok
Tags:
Comment:
Removed double formatNum calls (probably from conflicts)
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/UnreviewedPages_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/UnreviewedPages_body.php
@@ -100,7 +100,7 @@
101101 if ( !is_null( $size = $row->page_len ) ) {
102102 $stxt = ( $size == 0 )
103103 ? wfMsgHtml( 'historyempty' )
104 - : wfMsgExt( 'historysize', array( 'parsemag' ), $wgLang->formatNum( $size ) );
 104+ : wfMsgExt( 'historysize', 'parsemag', $wgLang->formatNum( $size ) );
105105 $stxt = " <small>$stxt</small>";
106106 }
107107 # Get how long the first unreviewed edit has been waiting...
@@ -110,12 +110,12 @@
111111 $hours = ( $currentTime - $firstPendingTime ) / 3600;
112112 // After three days, just use days
113113 if ( $hours > ( 3 * 24 ) ) {
114 - $days = $wgLang->formatNum( round( $hours / 24, 0 ) );
115 - $age = ' ' . wfMsgExt( 'unreviewed-days', array( 'parsemag' ), $wgLang->formatNum( $days ) );
 114+ $days = round( $hours / 24, 0 );
 115+ $age = ' ' . wfMsgExt( 'unreviewed-days', 'parsemag', $wgLang->formatNum( $days ) );
116116 // If one or more hours, use hours
117117 } elseif ( $hours >= 1 ) {
118 - $hours = $wgLang->formatNum( round( $hours, 0 ) );
119 - $age = ' ' . wfMsgExt( 'unreviewed-hours', array( 'parsemag' ), $wgLang->formatNum( $hours ) );
 118+ $hours = round( $hours, 0 );
 119+ $age = ' ' . wfMsgExt( 'unreviewed-hours', 'parsemag', $wgLang->formatNum( $hours ) );
120120 } else {
121121 $age = ' ' . wfMsg( 'unreviewed-recent' ); // hot off the press :)
122122 }

Status & tagging log