From 620e0ebd91a99c7e66190f3cb615fcc90ab55ea6 Mon Sep 17 00:00:00 2001 From: paladox Date: Fri, 7 Feb 2025 20:14:34 +0000 Subject: [PATCH] Replace deprecated wgHooks Fixes #76 --- SemanticCompoundQueries.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SemanticCompoundQueries.php b/SemanticCompoundQueries.php index 78e2624..f43e891 100644 --- a/SemanticCompoundQueries.php +++ b/SemanticCompoundQueries.php @@ -1,5 +1,7 @@ getHookContainer(); + $hookContainer->register( 'ParserFirstCallInit', function( Parser &$parser ) { $parser->setFunctionHook( 'compound_query', [ '\SCQ\CompoundQueryProcessor', 'doCompoundQuery' ] ); // always return true, in order not to stop MW's hook processing! return true; - }; + } ); } /**