Specify MediaWiki version requirement in extension.json

...and get rid of the wfUseMW() call.

Change-Id: Ie83a8275e2531bcd836a56c19300ea261b5aa2a0
This commit is contained in:
Kunal Mehta 2015-10-29 17:02:04 -07:00
parent 9014e21a08
commit 0006cff10c
2 changed files with 3 additions and 7 deletions

View file

@ -7,10 +7,6 @@
*/
class TemplateDataHooks {
public static function onSetup() {
wfUseMW( '1.25wmf22' );
}
/**
* Register parser hooks
*/

View file

@ -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"