From 2e1222109c1a5eb19c1d578335cec16f14c19b53 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Tue, 11 Feb 2014 19:37:07 +0100 Subject: [PATCH] Fix possible error list for action=query&list=blocks possible errors for requireMaxOneParameter are generated with getRequireMaxOneParameterErrorMessages, not getRequireOnlyOneParameterErrorMessages Change-Id: Ia3d705ddf2f2d969b3112962a13f27dc9a106037 --- includes/api/ApiQueryBlocks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryBlocks.php b/includes/api/ApiQueryBlocks.php index 57f76bc45f..47768cb70b 100644 --- a/includes/api/ApiQueryBlocks.php +++ b/includes/api/ApiQueryBlocks.php @@ -415,7 +415,7 @@ class ApiQueryBlocks extends ApiQueryBase { global $wgBlockCIDRLimit; return array_merge( parent::getPossibleErrors(), - $this->getRequireOnlyOneParameterErrorMessages( array( 'users', 'ip' ) ), + $this->getRequireMaxOneParameterErrorMessages( array( 'users', 'ip' ) ), array( array( 'code' => 'cidrtoobroad', -- 2.20.1