mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-09-23 10:21:45 +00:00
Specify MediaWiki version requirement in extension.json
...and get rid of the wfUseMW() call. Change-Id: Ie83a8275e2531bcd836a56c19300ea261b5aa2a0
This commit is contained in:
parent
9014e21a08
commit
0006cff10c
|
@ -7,10 +7,6 @@
|
|||
*/
|
||||
|
||||
class TemplateDataHooks {
|
||||
public static function onSetup() {
|
||||
wfUseMW( '1.25wmf22' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Register parser hooks
|
||||
*/
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
"descriptionmsg": "templatedata-desc",
|
||||
"license-name": "GPL-2.0",
|
||||
"type": "parserhook",
|
||||
"requires": {
|
||||
"MediaWiki": ">= 1.25.0"
|
||||
},
|
||||
"APIModules": {
|
||||
"templatedata": "ApiTemplateData"
|
||||
},
|
||||
|
@ -22,9 +25,6 @@
|
|||
"TemplateDataBlob": "TemplateDataBlob.php",
|
||||
"ApiTemplateData": "api/ApiTemplateData.php"
|
||||
},
|
||||
"ExtensionFunctions": [
|
||||
"TemplateDataHooks::onSetup"
|
||||
],
|
||||
"Hooks": {
|
||||
"ParserFirstCallInit": [
|
||||
"TemplateDataHooks::onParserFirstCallInit"
|
||||
|
|
Loading…
Reference in a new issue