From 97c9437f280de81d6e8d1a8633c13bc5345eb3fe Mon Sep 17 00:00:00 2001 From: Brian Evans Date: Fri, 4 Dec 2020 14:48:36 -0500 Subject: GentooPackages: Fix up call until it can work natively Signed-off-by: Brian Evans --- GentooPackages/GentooPackages.php | 2 +- GentooPackages/extension.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GentooPackages/GentooPackages.php b/GentooPackages/GentooPackages.php index 8bd8d576..8ee2e4cd 100644 --- a/GentooPackages/GentooPackages.php +++ b/GentooPackages/GentooPackages.php @@ -118,7 +118,7 @@ HTML; return $merged_flags; } - public function onParserFirstCallInit($parser) { + public static function onParserFirstCallInit($parser) { $parser->setHook('package-info', 'GentooPackages::packageInfo'); $output = $parser->getOutput(); $output->addModules('ext.gentooPackages'); diff --git a/GentooPackages/extension.json b/GentooPackages/extension.json index e1f9b2ce..2cb8ab2c 100644 --- a/GentooPackages/extension.json +++ b/GentooPackages/extension.json @@ -21,7 +21,7 @@ ] }, "Hooks": { - "ParserFirstCallInit": "GentooPackages" + "ParserFirstCallInit": "GentooPackages::onParserFirstCallInit" }, "ResourceModules": { "ext.gentooPackages": { -- cgit v1.2.3-65-gdbad