X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FreassignEdits.php;h=ee3f70935a691cafb902a8d23dcf98cb4b1323e6;hb=12238a3704e777f59625d18636c81b16657e6593;hp=2afd6e087f852be044bb17b8970c99d6d6a33755;hpb=9f655dc36085061d8be9637cf374156694cbcd4e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/reassignEdits.php b/maintenance/reassignEdits.php index 2afd6e087f..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( dirname( __FILE__ ) . '/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;