mediawiki-extensions-InputBox/extension.json
Umherirrender b197b9ffe7 Improve Hooks::onMediaWikiPerformAction
- Use IContextSource::getActionName directly and not
MediaWiki::getAction
- Use IContextSource::getConfig instead of MainConfig
- Use getRawVal to check against constant value
- Use local var to avoid repeatly calls

Change-Id: I592e4451035c37c35fe181fa69b080f3f7a31ec8
2022-11-11 11:58:02 +01:00

54 lines
1 KiB
JSON

{
"name": "InputBox",
"version": "0.3.0",
"author": [
"Erik Moeller",
"Leonardo Pimenta",
"Rob Church",
"Trevor Parscal",
"DaSch"
],
"url": "https://www.mediawiki.org/wiki/Extension:InputBox",
"descriptionmsg": "inputbox-desc",
"requires": {
"MediaWiki": ">= 1.38.0"
},
"license-name": "MIT",
"type": "parserhook",
"MessagesDirs": {
"InputBox": [
"i18n"
]
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\InputBox\\": "includes/"
},
"ResourceModules": {
"ext.inputBox.styles": {
"styles": {
"ext.inputBox.styles.less": { "media": "screen" },
"ext.inputBox.print.less": { "media": "print" }
},
"targets": [
"mobile",
"desktop"
]
}
},
"ResourceFileModulePaths": {
"localBasePath": "resources",
"remoteExtPath": "InputBox/resources"
},
"Hooks": {
"ParserFirstCallInit": "main",
"MediaWikiPerformAction": "main",
"SpecialPageBeforeExecute": "main"
},
"HookHandlers": {
"main": {
"class": "MediaWiki\\Extension\\InputBox\\InputBoxHooks"
}
},
"manifest_version": 2
}