X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=maintenance%2FfixDoubleRedirects.php;h=8c9faca2ee8d76c5a76847900477b864ca2cb12b;hb=3df3b575c6617df64ec98533cc7141bd2314e274;hp=79f75ef7ed944e3c08047793e2d929a424019299;hpb=b444c2a3dfa459e7e54fd822e4d04cd9882f90e2;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/fixDoubleRedirects.php b/maintenance/fixDoubleRedirects.php index 79f75ef7ed..8c9faca2ee 100644 --- a/maintenance/fixDoubleRedirects.php +++ b/maintenance/fixDoubleRedirects.php @@ -42,8 +42,8 @@ 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' ) );