Index: trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php |
— | — | @@ -127,9 +127,8 @@ |
128 | 128 | * Note that parser hooks are something different than MW hooks |
129 | 129 | * in general, which explains the two-level registration. |
130 | 130 | */ |
131 | | -function smwfRegisterInlineQueries( $semantic, $mediawiki, $rules ) { |
132 | | - global $wgParser; |
133 | | - $wgParser->setHook( 'ask', 'smwfProcessInlineQuery' ); |
| 131 | +function smwfRegisterInlineQueries( &$parser, &$text, &$stripstate ) { |
| 132 | + $parser->setHook( 'ask', 'smwfProcessInlineQuery' ); |
134 | 133 | return true; // always return true, in order not to stop MW's hook processing! |
135 | 134 | } |
136 | 135 | |