mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 23:43:54 +00:00
Remove $wgTemplateDataSuggestedValues feature flag
Feature is always enabled now. Bug: T307188 Bug: T310684 Change-Id: Ic99c594ceec0020a6c9d20f0a4f10285b74ea9a8
This commit is contained in:
parent
560819e270
commit
d1ffdc2b95
|
@ -29,8 +29,7 @@
|
|||
"MultiContentSave": "MediaWiki\\Extension\\TemplateData\\Hooks::onMultiContentSave",
|
||||
"ResourceLoaderRegisterModules": "MediaWiki\\Extension\\TemplateData\\Hooks::onResourceLoaderRegisterModules",
|
||||
"EditPage::showEditForm:initial": "MediaWiki\\Extension\\TemplateData\\Hooks::onEditPage",
|
||||
"ParserFetchTemplateData": "MediaWiki\\Extension\\TemplateData\\Hooks::onParserFetchTemplateData",
|
||||
"MakeGlobalVariablesScript": "MediaWiki\\Extension\\TemplateData\\Hooks::onMakeGlobalVariablesScript"
|
||||
"ParserFetchTemplateData": "MediaWiki\\Extension\\TemplateData\\Hooks::onParserFetchTemplateData"
|
||||
},
|
||||
"MessagesDirs": {
|
||||
"TemplateData": [
|
||||
|
@ -237,11 +236,6 @@
|
|||
"config": {
|
||||
"TemplateDataUseGUI": {
|
||||
"value": true
|
||||
},
|
||||
"TemplateDataSuggestedValuesEditor": {
|
||||
"description": "Temporary feature flag to enable the \"suggested values\" UI",
|
||||
"value": false,
|
||||
"public": true
|
||||
}
|
||||
},
|
||||
"manifest_version": 2
|
||||
|
|
|
@ -172,20 +172,6 @@ class Hooks {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Include config when appropriate.
|
||||
*
|
||||
* @param array &$vars
|
||||
* @param OutputPage $output
|
||||
* @see https://www.mediawiki.org/wiki/Manual:Hooks/MakeGlobalVariablesScript
|
||||
*/
|
||||
public static function onMakeGlobalVariablesScript( array &$vars, OutputPage $output ) {
|
||||
if ( $output->getTitle()->inNamespace( NS_TEMPLATE ) ) {
|
||||
$vars['wgTemplateDataSuggestedValuesEditor'] =
|
||||
$output->getConfig()->get( 'TemplateDataSuggestedValuesEditor' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Parser hook for <templatedata>.
|
||||
* If there is any JSON provided, render the template documentation on the page.
|
||||
|
|
|
@ -955,7 +955,6 @@ Dialog.prototype.toggleSuggestedValues = function ( type ) {
|
|||
// Don't show the suggested values field when the feature flag is
|
||||
// disabled, or for inapplicable types.
|
||||
this.propFieldLayout.suggestedvalues.toggle(
|
||||
mw.config.get( 'wgTemplateDataSuggestedValuesEditor' ) &&
|
||||
suggestedValuesAllowedTypes.indexOf( type ) !== -1
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue