Allow the signature button to work in NWE as well as VE

Previously we were only letting the button work in VE-enabled namespaces,
which means that on namespaces where you can use NWE but not VE (oh, you
know, most of them) the signature button was always disabled, which was
somewhat discombobulating.

Bug: T159211
Change-Id: I4ffffb3a7e14df78a45a6e3afa49718c0329ca55
This commit is contained in:
James D. Forrester 2017-02-28 13:38:26 -08:00
parent b3cfca5401
commit 667dc5231b

View file

@ -701,7 +701,7 @@ class VisualEditorHooks {
'namespaces' => $availableNamespaces,
'contentModels' => $availableContentModels,
'signatureNamespaces' => array_values(
array_filter( $availableNamespaces, 'MWNamespace::wantSignatures' )
array_filter( MWNamespace::getValidNamespaces(), 'MWNamespace::wantSignatures' )
),
'pluginModules' => array_merge(
ExtensionRegistry::getInstance()->getAttribute( 'VisualEditorPluginModules' ),