build: Update grunt-contrib-jshint from 0.12.0 to 1.0.0
[lhc/web/wiklou.git] / maintenance / moveBatch.php
index 43d4d25..3a1a72c 100644 (file)
@@ -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 );
                }