From: Roan Kattouw Date: Sun, 26 Oct 2008 10:47:13 +0000 (+0000) Subject: API: Fixing r42583: true isn't even allowed as a default value X-Git-Tag: 1.31.0-rc.0~44578 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=f6363295b49977b267da779c6dff197ef594d453;p=lhc%2Fweb%2Fwiklou.git API: Fixing r42583: true isn't even allowed as a default value --- 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, ); }