X-Git-Url: https://git.cyclocoop.org/admin/?a=blobdiff_plain;f=maintenance%2Fundelete.php;h=144518e40a63123d2c94c99ae9f9cc165b64ba9f;hb=7512d9a4a132ec2c3a1178102008087866a9c36d;hp=278b68d377173ccaa4f0bd8513e13b16a7b879c8;hpb=5dad90f3578cfe8dcd2e1ad642babf2e2660c0ca;p=lhc%2Fweb%2Fwiklou.git 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;