jenkins-bot has submitted this change and it was merged. 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(-) Approvals: Esanders: Looks good to me, approved jenkins-bot: Verified diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php index fa6d14f..b9b066a 100644 --- a/ApiVisualEditor.php +++ b/ApiVisualEditor.php @@ -665,10 +665,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/296653 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I23ee26fa95a01b3e0881a4ca16e70247839d9cd9 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VisualEditor Gerrit-Branch: wmf/1.28.0-wmf.8 Gerrit-Owner: Alex Monk <kren...@gmail.com> Gerrit-Reviewer: Esanders <esand...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits