X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=maintenance%2Fprotect.php;h=e2c1a8b340f7ba51dc011b6841eae5326908d147;hb=787da207a297714551fec2e518d67fbe3e957d60;hp=eae615471a79612995429bebc2a2ae7eead9e054;hpb=4c96ff5203daefc5c87cb2aec6f9ba1acac3b6cb;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/protect.php b/maintenance/protect.php index eae615471a..e2c1a8b340 100644 --- a/maintenance/protect.php +++ b/maintenance/protect.php @@ -62,9 +62,6 @@ class Protect extends Maintenance { $this->fatalError( "Invalid username" ); } - // @todo FIXME: This is reset 7 lines down. - $restrictions = [ 'edit' => $protection, 'move' => $protection ]; - $t = Title::newFromText( $this->getArg() ); if ( !$t ) { $this->fatalError( "Invalid title" ); @@ -89,5 +86,5 @@ class Protect extends Maintenance { } } -$maintClass = "Protect"; +$maintClass = Protect::class; require_once RUN_MAINTENANCE_IF_MAIN;