X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fundelete.php;h=c2d5c2c2486a39278b1362706e422bddfc41aa08;hb=76abc7a9554eb9a3060f66f8d72ee8fae862826b;hp=861f5ed06cd480427398712d20e9fcc2343b50d8;hpb=ca2c2c0f4fdd633779ce1d48d09645275b0e5827;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" ); } }