X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fprotect.php;h=b47476a58c86198bf5242833421ef64766fb0b39;hb=801a8bdaa38cea5ff4db0440c82e9eb83e083772;hp=f6bb2532024ea2d2d79ec9502c805b76387aaad5;hpb=5a1104444f3d71d3f696f130de79b315f86e15cc;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/protect.php b/maintenance/protect.php index f6bb253202..b47476a58c 100644 --- a/maintenance/protect.php +++ b/maintenance/protect.php @@ -59,7 +59,7 @@ class Protect extends Maintenance { $user = User::newFromName( $userName ); } if ( !$user ) { - $this->error( "Invalid username", true ); + $this->fatalError( "Invalid username" ); } // @todo FIXME: This is reset 7 lines down. @@ -67,7 +67,7 @@ class Protect extends Maintenance { $t = Title::newFromText( $this->getArg() ); if ( !$t ) { - $this->error( "Invalid title", true ); + $this->fatalError( "Invalid title" ); } $restrictions = []; @@ -89,5 +89,5 @@ class Protect extends Maintenance { } } -$maintClass = "Protect"; +$maintClass = Protect::class; require_once RUN_MAINTENANCE_IF_MAIN;