X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfixDoubleRedirects.php;h=7e29f09ae767c8120049f051bac5005ac2f30cde;hb=08edb27f6ce31c676660a4ef89b87da79bde2cc2;hp=79f75ef7ed944e3c08047793e2d929a424019299;hpb=bdfa96eb726c9997a010f5a194eec71925bfddc2;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/fixDoubleRedirects.php b/maintenance/fixDoubleRedirects.php index 79f75ef7ed..7e29f09ae7 100644 --- a/maintenance/fixDoubleRedirects.php +++ b/maintenance/fixDoubleRedirects.php @@ -42,13 +42,13 @@ class FixDoubleRedirects extends Maintenance { } public function execute() { - $async = $this->getOption( 'async', false ); - $dryrun = $this->getOption( 'dry-run', false ); + $async = $this->hasOption( 'async' ); + $dryrun = $this->hasOption( 'dry-run' ); if ( $this->hasOption( 'title' ) ) { $title = Title::newFromText( $this->getOption( 'title' ) ); if ( !$title || !$title->isRedirect() ) { - $this->error( $title->getPrefixedText() . " is not a redirect!\n", true ); + $this->fatalError( $title->getPrefixedText() . " is not a redirect!\n" ); } } else { $title = null;