X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=maintenance%2FpageExists.php;h=6a5654f52d7ede9e7d4380059e038200cd1b0416;hb=5d3194bbcd6b88c279396f28ee0ebc5c71594762;hp=dc9bbdacabc406a4e34b7abdda12be4096cb5a22;hpb=16ef3e79c4c52aa6b74563b7eadcfc9792e7a4c4;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/pageExists.php b/maintenance/pageExists.php index dc9bbdacab..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.";