r42611 - Code Review

From MediaWiki.org

Jump to: navigation, search
Repository:MediaWiki
Revision:r42610 | r42611 (on ViewVC) | r42612 >
Date:10:47, 26 October 2008
Author:catrope
Status:ok
Tags:
Comment:API: Fixing r42583: true isn't even allowed as a default value
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/api/ApiBlock.php
===================================================================
--- trunk/phase3/includes/api/ApiBlock.php	(revision 42610)
+++ trunk/phase3/includes/api/ApiBlock.php	(revision 42611)
@@ -115,7 +115,6 @@
 	public function mustBePosted() { return true; }
 
 	public function getAllowedParams() {
-		global $wgBlockAllowsUTEdit;
 		return array (
 			'user' => null,
 			'token' => null,
@@ -127,7 +126,7 @@
 			'autoblock' => false,
 			'noemail' => false,
 			'hidename' => false,
-			'allowusertalk' => (bool)$wgBlockAllowsUTEdit,
+			'allowusertalk' => false,
 		);
 	}
 
Views
Toolbox