r25773 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25772‎ | r25773 | r25774 >
Date:11:59, 11 September 2007
Author:mkroetzsch
Status:old
Tags:
Comment:
Register <ask> tags to the current parser instead of $wgParser
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php
@@ -127,9 +127,8 @@
128128 * Note that parser hooks are something different than MW hooks
129129 * in general, which explains the two-level registration.
130130 */
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' );
134133 return true; // always return true, in order not to stop MW's hook processing!
135134 }
136135

Status & tagging log