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

This commit is contained in:
jenkins-bot 2017-02-28 22:34:11 +00:00 committed by Gerrit Code Review
commit 5e9a3ac1db

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' ),