Make protect.php maintenance script not ignore --user and --reason parameters
authorrlot <rj23@protonmail.com>
Tue, 29 Nov 2016 13:38:01 +0000 (14:38 +0100)
committerrlot <rj23@protonmail.com>
Tue, 29 Nov 2016 15:57:19 +0000 (16:57 +0100)
Google Code-In task

Bug: T89713
Change-Id: If4832fb54011af171a74b0b1a59df207b5209044

maintenance/protect.php

index 31b2101..f6bb253 100644 (file)
@@ -41,8 +41,8 @@ class Protect extends Maintenance {
        }
 
        public function execute() {
-               $userName = $this->getOption( 'u', false );
-               $reason = $this->getOption( 'r', '' );
+               $userName = $this->getOption( 'user', false );
+               $reason = $this->getOption( 'reason', '' );
 
                $cascade = $this->hasOption( 'cascade' );