maintenance: Deprecate Maintenance::hasArg/getArg with no param
[lhc/web/wiklou.git] / maintenance / protect.php
index e2c1a8b..1603ab0 100644 (file)
@@ -62,7 +62,7 @@ class Protect extends Maintenance {
                        $this->fatalError( "Invalid username" );
                }
 
-               $t = Title::newFromText( $this->getArg() );
+               $t = Title::newFromText( $this->getArg( 0 ) );
                if ( !$t ) {
                        $this->fatalError( "Invalid title" );
                }