mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-13 17:48:17 +00:00
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:
parent
b3cfca5401
commit
667dc5231b
|
@ -701,7 +701,7 @@ class VisualEditorHooks {
|
||||||
'namespaces' => $availableNamespaces,
|
'namespaces' => $availableNamespaces,
|
||||||
'contentModels' => $availableContentModels,
|
'contentModels' => $availableContentModels,
|
||||||
'signatureNamespaces' => array_values(
|
'signatureNamespaces' => array_values(
|
||||||
array_filter( $availableNamespaces, 'MWNamespace::wantSignatures' )
|
array_filter( MWNamespace::getValidNamespaces(), 'MWNamespace::wantSignatures' )
|
||||||
),
|
),
|
||||||
'pluginModules' => array_merge(
|
'pluginModules' => array_merge(
|
||||||
ExtensionRegistry::getInstance()->getAttribute( 'VisualEditorPluginModules' ),
|
ExtensionRegistry::getInstance()->getAttribute( 'VisualEditorPluginModules' ),
|
||||||
|
|
Loading…
Reference in a new issue