X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FmoveBatch.php;h=3a1a72c81dc299f8611c65def244cd2109ec1ce7;hb=7fa4f3baa1bd8dea6126d8d2c1f9948605e9a634;hp=43d4d25d155ca5a7218d3b4953c6ddc6f11d71da;hpb=764cfa7d85ddfae9f23abd94c3d416fc4680ed0b;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 ); }