mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Only show NWE beta feature if enabled in config
Change-Id: Iaa2e3620ab15ece136fe425e61b72f33c8d2f4b4
This commit is contained in:
parent
5bc54fd036
commit
e56ed2274d
|
@ -588,23 +588,25 @@ class VisualEditorHooks {
|
|||
]
|
||||
];
|
||||
|
||||
$preferences['visualeditor-newwikitext'] = [
|
||||
'version' => '1.0',
|
||||
'label-message' => 'visualeditor-preference-newwikitexteditor-label',
|
||||
'desc-message' => 'visualeditor-preference-newwikitexteditor-description',
|
||||
'screenshot' => [
|
||||
'ltr' => "$iconpath/betafeatures-icon-WikitextEditor-ltr.svg",
|
||||
'rtl' => "$iconpath/betafeatures-icon-WikitextEditor-rtl.svg",
|
||||
],
|
||||
'info-message' => 'visualeditor-preference-newwikitexteditor-info-link',
|
||||
'discussion-message' => 'visualeditor-preference-newwikitexteditor-discussion-link',
|
||||
'requirements' => [
|
||||
'javascript' => true,
|
||||
'blacklist' => $veConfig->get( 'VisualEditorBrowserBlacklist' ),
|
||||
'skins' => $veConfig->get( 'VisualEditorSupportedSkins' ),
|
||||
],
|
||||
'exempt-from-auto-enrollment' => true
|
||||
];
|
||||
if ( $veConfig->get( 'VisualEditorEnableWikitext' ) ) {
|
||||
$preferences['visualeditor-newwikitext'] = [
|
||||
'version' => '1.0',
|
||||
'label-message' => 'visualeditor-preference-newwikitexteditor-label',
|
||||
'desc-message' => 'visualeditor-preference-newwikitexteditor-description',
|
||||
'screenshot' => [
|
||||
'ltr' => "$iconpath/betafeatures-icon-WikitextEditor-ltr.svg",
|
||||
'rtl' => "$iconpath/betafeatures-icon-WikitextEditor-rtl.svg",
|
||||
],
|
||||
'info-message' => 'visualeditor-preference-newwikitexteditor-info-link',
|
||||
'discussion-message' => 'visualeditor-preference-newwikitexteditor-discussion-link',
|
||||
'requirements' => [
|
||||
'javascript' => true,
|
||||
'blacklist' => $veConfig->get( 'VisualEditorBrowserBlacklist' ),
|
||||
'skins' => $veConfig->get( 'VisualEditorSupportedSkins' ),
|
||||
],
|
||||
'exempt-from-auto-enrollment' => true
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue