X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FmoveBatch.php;h=3a1a72c81dc299f8611c65def244cd2109ec1ce7;hb=427798373755e245d666fb956c0a9eb8bd81a762;hp=43d4d25d155ca5a7218d3b4953c6ddc6f11d71da;hpb=6505e5f278aae664f78fb8f876c10902d2195231;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/moveBatch.php b/maintenance/moveBatch.php index 43d4d25d15..3a1a72c81d 100644 --- a/maintenance/moveBatch.php +++ b/maintenance/moveBatch.php @@ -45,7 +45,7 @@ require_once __DIR__ . '/Maintenance.php'; class MoveBatch extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Moves a batch of pages"; + $this->addDescription( 'Moves a batch of pages' ); $this->addOption( 'u', "User to perform move", false, true ); $this->addOption( 'r', "Reason to move page", false, true ); $this->addOption( 'i', "Interval to sleep between moves" ); @@ -76,7 +76,7 @@ class MoveBatch extends Maintenance { $this->error( "Unable to read file, exiting", true ); } if ( $user === false ) { - $wgUser = User::newSystemUser( 'Move page script', array( 'steal' => true ) ); + $wgUser = User::newSystemUser( 'Move page script', [ 'steal' => true ] ); } else { $wgUser = User::newFromName( $user ); }