From f6363295b49977b267da779c6dff197ef594d453 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sun, 26 Oct 2008 10:47:13 +0000 Subject: [PATCH] API: Fixing r42583: true isn't even allowed as a default value --- includes/api/ApiBlock.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/api/ApiBlock.php b/includes/api/ApiBlock.php index 9cdf8ea10d..4070fec4d9 100644 --- a/includes/api/ApiBlock.php +++ b/includes/api/ApiBlock.php @@ -115,7 +115,6 @@ class ApiBlock extends ApiBase { public function mustBePosted() { return true; } public function getAllowedParams() { - global $wgBlockAllowsUTEdit; return array ( 'user' => null, 'token' => null, @@ -127,7 +126,7 @@ class ApiBlock extends ApiBase { 'autoblock' => false, 'noemail' => false, 'hidename' => false, - 'allowusertalk' => (bool)$wgBlockAllowsUTEdit, + 'allowusertalk' => false, ); } -- 2.20.1