Revert r73510 (trunk version of r73511 ; missed the fact that the latter was a merge...
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 22 Sep 2010 12:04:24 +0000 (12:04 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 22 Sep 2010 12:04:24 +0000 (12:04 +0000)
RELEASE-NOTES
includes/DefaultSettings.php
includes/api/ApiMain.php

index 61bebd5..6a4c143 100644 (file)
@@ -160,7 +160,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Added new hook GetIP
 * (bug 16574) Allow administrators to temporarily disable the account creation
   limit for IP addresses: [[MediaWiki:Ratelimit-excluded-ips]]
-* API modules can be disabled in configuration using $wgAPIDisabledActions.
 
 === Bug fixes in 1.17 ===
 * (bug 17560) Half-broken deletion moved image files to deletion archive
index 464e5d7..65276e9 100644 (file)
@@ -4832,13 +4832,6 @@ $wgAPIMetaModules = array();
 $wgAPIPropModules = array();
 $wgAPIListModules = array();
 
-/**
- * Disabled API actions. To disable an API action, add its name here, for 
- * example:
- *    $wgAPIDisabledActions[] = 'parse';
- */
-$wgAPIDisabledActions = array();
-
 /**
  * Maximum amount of rows to scan in a DB query in the API
  * The default value is generally fine
index e227a06..d837f45 100644 (file)
@@ -158,11 +158,6 @@ class ApiMain extends ApiBase {
                global $wgAPIModules; // extension modules
                $this->mModules = $wgAPIModules + self::$Modules;
 
-               global $wgAPIDisabledActions;
-               foreach ( $wgAPIDisabledActions as $action ) {
-                       unset( $this->mModules[$action] );
-               }
-
                $this->mModuleNames = array_keys( $this->mModules );
                $this->mFormats = self::$Formats;
                $this->mFormatNames = array_keys( $this->mFormats );