X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fundelete.php;h=c2d5c2c2486a39278b1362706e422bddfc41aa08;hb=42ba9ea516beb06969bd3e579aa506821629ecb8;hp=861f5ed06cd480427398712d20e9fcc2343b50d8;hpb=829b2e7d0169ba977cec42df6ee83eb60de51045;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/undelete.php b/maintenance/undelete.php index 861f5ed06c..c2d5c2c248 100644 --- a/maintenance/undelete.php +++ b/maintenance/undelete.php @@ -44,7 +44,7 @@ class Undelete extends Maintenance { $this->error( "Invalid title", true ); } if ( $user === false ) { - $wgUser = User::newSystemUser( 'Command line script', array( 'steal' => true ) ); + $wgUser = User::newSystemUser( 'Command line script', [ 'steal' => true ] ); } else { $wgUser = User::newFromName( $user ); } @@ -53,7 +53,7 @@ class Undelete extends Maintenance { } $archive = new PageArchive( $title, RequestContext::getMain()->getConfig() ); $this->output( "Undeleting " . $title->getPrefixedDBkey() . '...' ); - $archive->undelete( array(), $reason ); + $archive->undelete( [], $reason ); $this->output( "done\n" ); } }