X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FfixDoubleRedirects.php;h=a76617aa7f68df83a3c90309dcad5b58c4b6adfb;hp=8c9faca2ee8d76c5a76847900477b864ca2cb12b;hb=5490b1270a0a7447f28d2407736fc3c1deb41d44;hpb=89539f2aa1b158fdcc703ad053e2580cb97a6385 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;