X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fprotect.php;h=1603ab0407f6fd1fdffabb1260e42e39caf404a5;hb=909b70a7c5c7b896b981da8a65cce57724b3715e;hp=b47476a58c86198bf5242833421ef64766fb0b39;hpb=495e8ddf7e6940777f3318a1a2e37d85bfdbdbf1;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/protect.php b/maintenance/protect.php index b47476a58c..1603ab0407 100644 --- a/maintenance/protect.php +++ b/maintenance/protect.php @@ -62,10 +62,7 @@ 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() ); + $t = Title::newFromText( $this->getArg( 0 ) ); if ( !$t ) { $this->fatalError( "Invalid title" ); }