Remove consideration of extension registry configured namespaces until we can find the correct way to merge them

This will disable ProofreadPage's addition of the Page namespaces (e.g. on
wikisources), but this is more important right now.

Bug: T138980
Change-Id: I23ee26fa95a01b3e0881a4ca16e70247839d9cd9
This commit is contained in:
Alex Monk 2016-06-29 21:47:14 +01:00
parent e1b2734ce0
commit bf0953b07b

View file

@ -669,10 +669,7 @@ class ApiVisualEditor extends ApiBase {
* @return array
*/
public static function getAvailableNamespaceIds( Config $config ) {
$availableNamespaces = array_merge(
ExtensionRegistry::getInstance()->getAttribute( 'VisualEditorAvailableNamespaces' ),
$config->get( 'VisualEditorAvailableNamespaces' )
);
$availableNamespaces = $config->get( 'VisualEditorAvailableNamespaces' );
return array_map( function ( $namespace ) {
// Convert canonical namespace names to IDs
return is_numeric( $namespace ) ?