For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
Index: trunk/phase3/includes/api/ApiMain.php =================================================================== --- trunk/phase3/includes/api/ApiMain.php (revision 25363) +++ trunk/phase3/includes/api/ApiMain.php (revision 25364) @@ -106,7 +106,9 @@ } } - $this->mModules = self :: $Modules; + global $wgAPIModules; // extension modules + $this->mModules = $wgAPIModules + self :: $Modules; + $this->mModuleNames = array_keys($this->mModules); // todo: optimize $this->mFormats = self :: $Formats; $this->mFormatNames = array_keys($this->mFormats); // todo: optimize Index: trunk/phase3/includes/DefaultSettings.php =================================================================== --- trunk/phase3/includes/DefaultSettings.php (revision 25363) +++ trunk/phase3/includes/DefaultSettings.php (revision 25364) @@ -2700,6 +2700,13 @@ $wgEnableWriteAPI = false; /** + * API module extensions + * Associative array mapping module name to class name. + * Extension modules may override the core modules. + */ +$wgAPIModules = array(); + +/** * Parser test suite files to be run by parserTests.php when no specific * filename is passed to it. *