r41354 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41353‎ | r41354 | r41355 >
Date:16:43, 28 September 2008
Author:nikerabbit
Status:old (Comments)
Tags:
Comment:
* Do not show anything if user has not done any edits
Modified paths:
  • /trunk/phase3/includes/specials/SpecialListusers.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialListusers.php
@@ -123,10 +123,13 @@
124124 }
125125
126126 $item = wfSpecialList( $name, $groups );
127 - $editCount = $wgLang->formatNum( $row->edits );
128 - $edits = wfMsgExt( 'usereditcount', 'parsemag', $editCount );
 127+ $edits = '';
 128+ if ( $row->edits ) {
 129+ $editCount = $wgLang->formatNum( $row->edits );
 130+ $edits = ' [' . wfMsgExt( 'usereditcount', 'parsemag', $editCount ) . ']';
 131+ }
129132 wfRunHooks( 'SpecialListusersFormatRow', array( &$item, $row ) );
130 - return "<li>{$item} [$edits]</li>";
 133+ return "<li>{$item}{$edits}</li>";
131134 }
132135
133136 function getBody() {

Comments

#Comment by Brion VIBBER (talk | contribs)   20:40, 30 September 2008

Backed out in r41405: unauthorized schema changes break parser tests, etc

Status & tagging log