X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FreassignEdits.php;h=ee3f70935a691cafb902a8d23dcf98cb4b1323e6;hb=12238a3704e777f59625d18636c81b16657e6593;hp=a91abf93d3347cde5fbdb9e94da5b0ea31a6fa24;hpb=d1a806b91b83c83e5ebba2fbc1486e9bc1a4c6a4;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/reassignEdits.php b/maintenance/reassignEdits.php index a91abf93d3..ee3f70935a 100644 --- a/maintenance/reassignEdits.php +++ b/maintenance/reassignEdits.php @@ -23,7 +23,7 @@ * @licence GNU General Public Licence 2.0 or later */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script that reassigns edits from a user or IP address @@ -46,7 +46,7 @@ class ReassignEdits extends Maintenance { if ( $this->hasArg( 0 ) && $this->hasArg( 1 ) ) { # Set up the users involved $from = $this->initialiseUser( $this->getArg( 0 ) ); - $to = $this->initialiseUser( $this->getArg( 1 ) ); + $to = $this->initialiseUser( $this->getArg( 1 ) ); # If the target doesn't exist, and --force is not set, stop here if ( $to->getId() || $this->hasOption( 'force' ) ) { @@ -174,10 +174,7 @@ class ReassignEdits extends Maintenance { $user->load(); return $user; } - - } $maintClass = "ReassignEdits"; -require_once( RUN_MAINTENANCE_IF_MAIN ); - +require_once RUN_MAINTENANCE_IF_MAIN;