Index: trunk/extensions/Renameuser/SpecialRenameuser_body.php |
— | — | @@ -195,9 +195,11 @@ |
196 | 196 | return; |
197 | 197 | } |
198 | 198 | |
| 199 | + // Always get the edits count, it will be used for the log message |
| 200 | + $contribs = User::edits( $uid ); |
| 201 | + |
199 | 202 | // Check edit count |
200 | 203 | if ( !$wgUser->isAllowed( 'siteadmin' ) ) { |
201 | | - $contribs = User::edits( $uid ); |
202 | 204 | if ( RENAMEUSER_CONTRIBLIMIT != 0 && $contribs > RENAMEUSER_CONTRIBLIMIT ) { |
203 | 205 | $wgOut->addWikiText( "<div class=\"errorbox\">" . |
204 | 206 | wfMsg( 'renameusererrortoomany', |