API: Fixing r42583: true isn't even allowed as a default value
authorRoan Kattouw <catrope@users.mediawiki.org>
Sun, 26 Oct 2008 10:47:13 +0000 (10:47 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sun, 26 Oct 2008 10:47:13 +0000 (10:47 +0000)
includes/api/ApiBlock.php

index 9cdf8ea..4070fec 100644 (file)
@@ -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,
                );
        }