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; - }; + } ); } /**