From 281644f79f8e5e928d9f879826b77786bdac84f3 Mon Sep 17 00:00:00 2001 From: rlot Date: Tue, 29 Nov 2016 14:38:01 +0100 Subject: [PATCH] Make protect.php maintenance script not ignore --user and --reason parameters Google Code-In task Bug: T89713 Change-Id: If4832fb54011af171a74b0b1a59df207b5209044 --- maintenance/protect.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance/protect.php b/maintenance/protect.php index 31b2101c68..f6bb253202 100644 --- a/maintenance/protect.php +++ b/maintenance/protect.php @@ -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' ); -- 2.20.1