mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +00:00
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:
parent
e1b2734ce0
commit
bf0953b07b
|
@ -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 ) ?
|
||||
|
|
Loading…
Reference in a new issue