Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -1317,6 +1317,7 @@ |
1318 | 1318 | 'listusers', |
1319 | 1319 | 'listusers-summary', |
1320 | 1320 | 'listusers-editsonly', |
| 1321 | + 'usereditcount', |
1321 | 1322 | 'newpages', |
1322 | 1323 | 'newpages-summary', |
1323 | 1324 | 'newpages-username', |
Index: trunk/phase3/includes/specials/SpecialListusers.php |
— | — | @@ -94,6 +94,7 @@ |
95 | 95 | LEFT JOIN $ipblocks ON user_id=ipb_user AND ipb_auto=0 ", |
96 | 96 | 'fields' => array('user_name', |
97 | 97 | 'MAX(user_id) AS user_id', |
| 98 | + 'MAX(user_editcount) AS edits', |
98 | 99 | 'COUNT(ug_group) AS numgroups', |
99 | 100 | 'MAX(ug_group) AS singlegroup'), |
100 | 101 | 'options' => array('GROUP BY' => 'user_name'), |
— | — | @@ -120,8 +121,9 @@ |
121 | 122 | } |
122 | 123 | |
123 | 124 | $item = wfSpecialList( $name, $groups ); |
| 125 | + $edits = wfMsgExt('usereditcount',array('parsemag'),$row->edits); |
124 | 126 | wfRunHooks( 'SpecialListusersFormatRow', array( &$item, $row ) ); |
125 | | - return "<li>{$item}</li>"; |
| 127 | + return "<li>{$item} [$edits]</li>"; |
126 | 128 | } |
127 | 129 | |
128 | 130 | function getBody() { |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -2044,6 +2044,7 @@ |
2045 | 2045 | 'listusers' => 'User list', |
2046 | 2046 | 'listusers-summary' => '', # do not translate or duplicate this message to other languages |
2047 | 2047 | 'listusers-editsonly' => 'Show users with edits only', |
| 2048 | +'usereditcount' => '$1 {{PLURAL:$1|edit|edits}}', |
2048 | 2049 | 'newpages' => 'New pages', |
2049 | 2050 | 'newpages-summary' => '', # do not translate or duplicate this message to other languages |
2050 | 2051 | 'newpages-username' => 'Username:', |