X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2Fundelete.php;h=144518e40a63123d2c94c99ae9f9cc165b64ba9f;hp=278b68d377173ccaa4f0bd8513e13b16a7b879c8;hb=e90012d5581801045910f31ddefa9aee52e39d39;hpb=587d08c5a626f8195def9f82ee83e17c85824db8 diff --git a/maintenance/undelete.php b/maintenance/undelete.php index 278b68d377..144518e40a 100644 --- a/maintenance/undelete.php +++ b/maintenance/undelete.php @@ -37,7 +37,7 @@ class Undelete extends Maintenance { $user = $this->getOption( 'user', false ); $reason = $this->getOption( 'reason', '' ); - $pageName = $this->getArg(); + $pageName = $this->getArg( 0 ); $title = Title::newFromText( $pageName ); if ( !$title ) { @@ -58,5 +58,5 @@ class Undelete extends Maintenance { } } -$maintClass = "Undelete"; +$maintClass = Undelete::class; require_once RUN_MAINTENANCE_IF_MAIN;