X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpageExists.php;h=6a5654f52d7ede9e7d4380059e038200cd1b0416;hb=5ed6917b4a630ef5b9d9d9ea68c2f4043cb70f1e;hp=24ec8cb83999e87c701cc15e2a480953b1966d19;hpb=2ef178072f6f46abde7bdcc2630389a8b2837557;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/pageExists.php b/maintenance/pageExists.php index 24ec8cb839..6a5654f52d 100644 --- a/maintenance/pageExists.php +++ b/maintenance/pageExists.php @@ -32,11 +32,10 @@ class PageExists extends Maintenance { } public function execute() { - $titleArg = $this->getArg(); + $titleArg = $this->getArg( 0 ); $title = Title::newFromText( $titleArg ); $pageExists = $title && $title->exists(); - $text = ''; $code = 0; if ( $pageExists ) { $text = "{$title} exists."; @@ -49,5 +48,5 @@ class PageExists extends Maintenance { } } -$maintClass = "PageExists"; +$maintClass = PageExists::class; require_once RUN_MAINTENANCE_IF_MAIN;