Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -3464,8 +3464,13 @@ |
3465 | 3465 | $wgMajorSiteNoticeID = 1; |
3466 | 3466 | |
3467 | 3467 | /** |
| 3468 | + * Display user edit counts in various prominent places. |
| 3469 | + */ |
| 3470 | +$wgEdititis = false; |
| 3471 | + |
| 3472 | +/** |
3468 | 3473 | * Enable the UniversalEditButton for browsers that support it |
3469 | 3474 | * (currently only Firefox with an extension) |
3470 | 3475 | * See http://universaleditbutton.org for more background information |
3471 | 3476 | */ |
3472 | | -$wgUniversalEditButton = true; |
\ No newline at end of file |
| 3477 | +$wgUniversalEditButton = true; |
Index: trunk/phase3/includes/specials/SpecialListusers.php |
— | — | @@ -123,10 +123,16 @@ |
124 | 124 | } |
125 | 125 | |
126 | 126 | $item = wfSpecialList( $name, $groups ); |
127 | | - $editCount = $wgLang->formatNum( $row->edits ); |
128 | | - $edits = wfMsgExt( 'usereditcount', 'parsemag', $editCount ); |
| 127 | + |
| 128 | + global $wgEdititis; |
| 129 | + if ( $wgEdititis ) { |
| 130 | + $editCount = $wgLang->formatNum( $row->edits ); |
| 131 | + $edits = ' [' . wfMsgExt( 'usereditcount', 'parsemag', $editCount ) . ']'; |
| 132 | + } else { |
| 133 | + $edits = ''; |
| 134 | + } |
129 | 135 | wfRunHooks( 'SpecialListusersFormatRow', array( &$item, $row ) ); |
130 | | - return "<li>{$item} [$edits]</li>"; |
| 136 | + return "<li>{$item}{$edits}</li>"; |
131 | 137 | } |
132 | 138 | |
133 | 139 | function getBody() { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -162,6 +162,9 @@ |
163 | 163 | * (bug 44) The {{ns:}} core parser function now also accepts localized namespace |
164 | 164 | names and aliases; also, its output now uses spaces instead of underscores to |
165 | 165 | match the behavior of the {{NAMESPACE}} magic word |
| 166 | +* Added the ability to display user edit counts in Special:ListUsers. Off by |
| 167 | + default, enabled with $wgEdititis = true (named after the medical condition |
| 168 | + marked by unhealthy obsession with edit counts). |
166 | 169 | |
167 | 170 | === Bug fixes in 1.14 === |
168 | 171 | |