X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=maintenance%2FpageExists.php;h=10d37de48cfd71266384d0f284c822ed3b0c0d9a;hb=7110e89e542f972bc148ece238829f00fb2e1053;hp=b631005f5f8816b636539329ecf74f478403f54b;hpb=9a3a412f86ba2568bdf85f9c5def51bdb422032d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/pageExists.php b/maintenance/pageExists.php index b631005f5f..10d37de48c 100644 --- a/maintenance/pageExists.php +++ b/maintenance/pageExists.php @@ -36,7 +36,6 @@ class PageExists extends Maintenance { $title = Title::newFromText( $titleArg ); $pageExists = $title && $title->exists(); - $text = ''; $code = 0; if ( $pageExists ) { $text = "{$title} exists."; @@ -45,9 +44,9 @@ class PageExists extends Maintenance { $code = 1; } $this->output( $text ); - $this->error( '', $code ); + exit( $code ); } } -$maintClass = "PageExists"; +$maintClass = PageExists::class; require_once RUN_MAINTENANCE_IF_MAIN;