X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfixDoubleRedirects.php;h=a76617aa7f68df83a3c90309dcad5b58c4b6adfb;hb=4fa7c42db953988058a1ed4e3813a06a04ae79f8;hp=8c9faca2ee8d76c5a76847900477b864ca2cb12b;hpb=a8a5f03b3b6653136c4dc5925d6bb2b806010725;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/fixDoubleRedirects.php b/maintenance/fixDoubleRedirects.php index 8c9faca2ee..a76617aa7f 100644 --- a/maintenance/fixDoubleRedirects.php +++ b/maintenance/fixDoubleRedirects.php @@ -48,7 +48,7 @@ class FixDoubleRedirects extends Maintenance { 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; @@ -136,5 +136,5 @@ class FixDoubleRedirects extends Maintenance { } } -$maintClass = "FixDoubleRedirects"; +$maintClass = FixDoubleRedirects::class; require_once RUN_MAINTENANCE_IF_MAIN;