X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpageExists.php;h=24ec8cb83999e87c701cc15e2a480953b1966d19;hb=e3a869de07016defcf87ed014b6a6ddf986c6732;hp=f4143834da0940aa7e18e543b76c817ee30b6a02;hpb=fa0560e7855e0f2505f7335a28bcd8afee71bf80;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/pageExists.php b/maintenance/pageExists.php index f4143834da..24ec8cb839 100644 --- a/maintenance/pageExists.php +++ b/maintenance/pageExists.php @@ -27,7 +27,7 @@ require_once __DIR__ . '/Maintenance.php'; class PageExists extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Report whether a specific page exists"; + $this->addDescription( 'Report whether a specific page exists' ); $this->addArg( 'title', 'Page title to check whether it exists' ); } @@ -45,7 +45,7 @@ class PageExists extends Maintenance { $code = 1; } $this->output( $text ); - $this->error( '', $code ); + exit( $code ); } }