Alex Monk has uploaded a new change for review. https://gerrit.wikimedia.org/r/296652
Change subject: Remove consideration of extension registry configured namespaces until we can find the correct way to merge them ...................................................................... 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 --- M ApiVisualEditor.php 1 file changed, 1 insertion(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor refs/changes/52/296652/1 diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php index 66db2e7..b7c5330 100644 --- a/ApiVisualEditor.php +++ b/ApiVisualEditor.php @@ -669,10 +669,7 @@ * @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 ) ? -- To view, visit https://gerrit.wikimedia.org/r/296652 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I23ee26fa95a01b3e0881a4ca16e70247839d9cd9 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VisualEditor Gerrit-Branch: master Gerrit-Owner: Alex Monk <kren...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits