r32568 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32567‎ | r32568 | r32569 >
Date:17:15, 29 March 2008
Author:ialex
Status:old
Tags:
Comment:
Fixed E_NOTICE if the user has siteadmin right
Modified paths:
  • /trunk/extensions/Renameuser/SpecialRenameuser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Renameuser/SpecialRenameuser_body.php
@@ -195,9 +195,11 @@
196196 return;
197197 }
198198
 199+ // Always get the edits count, it will be used for the log message
 200+ $contribs = User::edits( $uid );
 201+
199202 // Check edit count
200203 if ( !$wgUser->isAllowed( 'siteadmin' ) ) {
201 - $contribs = User::edits( $uid );
202204 if ( RENAMEUSER_CONTRIBLIMIT != 0 && $contribs > RENAMEUSER_CONTRIBLIMIT ) {
203205 $wgOut->addWikiText( "<div class=\"errorbox\">" .
204206 wfMsg( 'renameusererrortoomany',

Status & tagging log