summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GentooToolbox/extension.json2
-rw-r--r--GentooToolbox/localizedmsg/LocalizedMsg.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/GentooToolbox/extension.json b/GentooToolbox/extension.json
index 70f4d3f3..4cbb6a35 100644
--- a/GentooToolbox/extension.json
+++ b/GentooToolbox/extension.json
@@ -22,7 +22,7 @@
"Hooks": {
"smwInitProperties": "GTBXTranslationProperties::setupProperties",
"SMWStore::updateDataBefore": "GTBXTranslationProperties::updateDataBefore",
- "ParserFirstCallInit": "GTBXLocalizedMsg"
+ "ParserFirstCallInit": "GTBXLocalizedMsg::onParserFirstCallInit"
},
"manifest_version": 1
}
diff --git a/GentooToolbox/localizedmsg/LocalizedMsg.php b/GentooToolbox/localizedmsg/LocalizedMsg.php
index b3627515..ed952af9 100644
--- a/GentooToolbox/localizedmsg/LocalizedMsg.php
+++ b/GentooToolbox/localizedmsg/LocalizedMsg.php
@@ -1,7 +1,7 @@
<?php
class GTBXLocalizedMsg implements MediaWiki\Hook\ParserFirstCallInitHook {
- public function onParserFirstCallInit ( $parser ) {
+ public static function onParserFirstCallInit ( $parser ) {
$parser->setFunctionHook( 'msg', 'GTBXLocalizedMsg::LocalizedMsgParserFunction' );
return true;
}