diff options
author | 2020-12-04 14:49:56 -0500 | |
---|---|---|
committer | 2020-12-04 14:49:56 -0500 | |
commit | 8286b69ac67d15b615702725446d1f6b9e477832 (patch) | |
tree | a087291768ec75e5e2008c301f8e5aed2e62ea3d | |
parent | GentooPackages: Fix up call until it can work natively (diff) | |
download | extensions-8286b69ac67d15b615702725446d1f6b9e477832.tar.gz extensions-8286b69ac67d15b615702725446d1f6b9e477832.tar.bz2 extensions-8286b69ac67d15b615702725446d1f6b9e477832.zip |
GentooToolbox: Fix up class until it can be called natively
Signed-off-by: Brian Evans <grknight@gentoo.org>
-rw-r--r-- | GentooToolbox/extension.json | 2 | ||||
-rw-r--r-- | GentooToolbox/localizedmsg/LocalizedMsg.php | 2 |
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; } |