r20299 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r20298‎ | r20299 | r20300 >
Date:18:26, 9 March 2007
Author:raymond
Status:old
Tags:
Comment:
Use formatNum for pagesize
Modified paths:
  • /trunk/phase3/includes/PageHistory.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/PageHistory.php
@@ -177,7 +177,7 @@
178178 * @return string HTML output for the row
179179 */
180180 function historyLine( $row, $next, $counter = '', $notificationtimestamp = false, $latest = false, $firstInList = false ) {
181 - global $wgUser;
 181+ global $wgUser, $wgLang;
182182 $rev = new Revision( $row );
183183 $rev->setTitle( $this->mTitle );
184184
@@ -224,7 +224,7 @@
225225 if ($size == 0)
226226 $stxt = wfMsgHtml('historyempty');
227227 else
228 - $stxt = wfMsgHtml('historysize', $size);
 228+ $stxt = wfMsgHtml('historysize', $wgLang->formatNum( $size ) );
229229 $s .= " <span class=\"history-size\">$stxt</span>";
230230 }
231231