r41351 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41350‎ | r41351 | r41352 >
Date:16:01, 28 September 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* Use formatNum
Modified paths:
  • /trunk/phase3/includes/specials/SpecialListusers.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialListusers.php
@@ -106,6 +106,8 @@
107107 }
108108
109109 function formatRow( $row ) {
 110+ global $wgLang;
 111+
110112 $userPage = Title::makeTitle( NS_USER, $row->user_name );
111113 $name = $this->getSkin()->makeLinkObj( $userPage, htmlspecialchars( $userPage->getText() ) );
112114
@@ -121,7 +123,8 @@
122124 }
123125
124126 $item = wfSpecialList( $name, $groups );
125 - $edits = wfMsgExt('usereditcount',array('parsemag'),$row->edits);
 127+ $editCount = $wgLang->formatNum( $row->edits );
 128+ $edits = wfMsgExt( 'usereditcount', 'parsemag', $editCount );
126129 wfRunHooks( 'SpecialListusersFormatRow', array( &$item, $row ) );
127130 return "<li>{$item} [$edits]</li>";
128131 }

Status & tagging log