mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-24 07:23:30 +00:00
85351609fd
This hook needs the old call structur as there is not a interface for
it.
When CodeEditor extension is changed to provide that interface, this
needs to be moved to another class, because the extension is optional
and the interface not loaded on all installs.
This change is a follow-up to b504a6f496
and reverts the change for hook CodeEditorGetPageLanguage because
onCodeEditorGetPageLanguage is still a static function.
Bug: T271014
Change-Id: I0ac6f353be099c4c9b4cb36b65cb463b7b7b89ea
103 lines
2.5 KiB
JSON
103 lines
2.5 KiB
JSON
{
|
|
"name": "Gadgets",
|
|
"author": [
|
|
"Daniel Kinzler",
|
|
"Max Semenik"
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:Gadgets",
|
|
"descriptionmsg": "gadgets-desc",
|
|
"license-name": "GPL-2.0-or-later",
|
|
"requires": {
|
|
"MediaWiki": ">= 1.39.0"
|
|
},
|
|
"type": "other",
|
|
"namespaces": [
|
|
{
|
|
"id": 2300,
|
|
"constant": "NS_GADGET",
|
|
"name": "Gadget",
|
|
"protection": "gadgets-edit"
|
|
},
|
|
{
|
|
"id": 2301,
|
|
"constant": "NS_GADGET_TALK",
|
|
"name": "Gadget_talk"
|
|
},
|
|
{
|
|
"id": 2302,
|
|
"constant": "NS_GADGET_DEFINITION",
|
|
"name": "Gadget_definition",
|
|
"protection": "gadgets-definition-edit",
|
|
"capitallinkoverride": false,
|
|
"defaultcontentmodel": "GadgetDefinition"
|
|
},
|
|
{
|
|
"id": 2303,
|
|
"constant": "NS_GADGET_DEFINITION_TALK",
|
|
"name": "Gadget_definition_talk"
|
|
}
|
|
],
|
|
"ContentHandlers": {
|
|
"GadgetDefinition": "MediaWiki\\Extension\\Gadgets\\Content\\GadgetDefinitionContentHandler"
|
|
},
|
|
"AvailableRights": [
|
|
"gadgets-edit",
|
|
"gadgets-definition-edit"
|
|
],
|
|
"SpecialPages": {
|
|
"Gadgets": "MediaWiki\\Extension\\Gadgets\\SpecialGadgets",
|
|
"GadgetUsage": "MediaWiki\\Extension\\Gadgets\\SpecialGadgetUsage"
|
|
},
|
|
"APIListModules": {
|
|
"gadgetcategories": "MediaWiki\\Extension\\Gadgets\\Api\\ApiQueryGadgetCategories",
|
|
"gadgets": "MediaWiki\\Extension\\Gadgets\\Api\\ApiQueryGadgets"
|
|
},
|
|
"MessagesDirs": {
|
|
"Gadgets": [
|
|
"i18n",
|
|
"i18n/api"
|
|
]
|
|
},
|
|
"ExtensionMessagesFiles": {
|
|
"GadgetsAlias": "Gadgets.alias.php",
|
|
"GadgetsNamespaces": "Gadgets.namespaces.php"
|
|
},
|
|
"RawHtmlMessages": [
|
|
"gadgets-definition"
|
|
],
|
|
"AutoloadNamespaces": {
|
|
"MediaWiki\\Extension\\Gadgets\\": "includes/"
|
|
},
|
|
"TestAutoloadClasses": {
|
|
"GadgetTestUtils": "tests/phpunit/GadgetTestUtils.php"
|
|
},
|
|
"HookHandlers": {
|
|
"GadgetHooks": {
|
|
"class": "MediaWiki\\Extension\\Gadgets\\Hooks"
|
|
}
|
|
},
|
|
"Hooks": {
|
|
"PageDeleteComplete": "GadgetHooks",
|
|
"PageSaveComplete": "GadgetHooks",
|
|
"BeforePageDisplay": "GadgetHooks",
|
|
"CodeEditorGetPageLanguage": "MediaWiki\\Extension\\Gadgets\\Hooks::onCodeEditorGetPageLanguage",
|
|
"ContentHandlerDefaultModelFor": "GadgetHooks",
|
|
"EditFilterMergedContent": "GadgetHooks",
|
|
"UserGetDefaultOptions": "GadgetHooks",
|
|
"GetPreferences": "GadgetHooks",
|
|
"PreferencesGetLegend": "GadgetHooks",
|
|
"ResourceLoaderRegisterModules": "GadgetHooks",
|
|
"wgQueryPages": "GadgetHooks",
|
|
"DeleteUnknownPreferences": "GadgetHooks"
|
|
},
|
|
"config": {
|
|
"GadgetsRepoClass": {
|
|
"value": "MediaWiki\\Extension\\Gadgets\\MediaWikiGadgetsDefinitionRepo"
|
|
},
|
|
"SpecialGadgetUsageActiveUsers": {
|
|
"value": true
|
|
}
|
|
},
|
|
"manifest_version": 2
|
|
}
|