Index: trunk/phase3/includes/specials/SpecialListusers.php |
— | — | @@ -123,10 +123,13 @@ |
124 | 124 | } |
125 | 125 | |
126 | 126 | $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 | + } |
129 | 132 | wfRunHooks( 'SpecialListusersFormatRow', array( &$item, $row ) ); |
130 | | - return "<li>{$item} [$edits]</li>"; |
| 133 | + return "<li>{$item}{$edits}</li>"; |
131 | 134 | } |
132 | 135 | |
133 | 136 | function getBody() { |