Index: trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php |
— | — | @@ -91,6 +91,7 @@ |
92 | 92 | $wgHooks['ArticleDelete'][] = 'smwfDeleteHook'; |
93 | 93 | $wgHooks['TitleMoveComplete'][]='smwfMoveHook'; |
94 | 94 | $wgHooks['BeforePageDisplay'][]='smwfAddHTMLHeader'; |
| 95 | + $wgHooks['ParserBeforeStrip'][] = 'smwfRegisterInlineQueries'; // a hook for registering the <ask> parser hook |
95 | 96 | |
96 | 97 | /**********************************************/ |
97 | 98 | /***** credits (see "Special:Version") *****/ |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_InlineQueries.php |
— | — | @@ -85,8 +85,8 @@ |
86 | 86 | $smwgIQSortingEnabled = true; |
87 | 87 | |
88 | 88 | // first, we register a hook that will register a hook in the parser |
89 | | -global $wgHooks; |
90 | | -$wgHooks['ParserBeforeStrip'][] = 'smwfRegisterInlineQueries'; |
| 89 | +// global $wgHooks; |
| 90 | +// $wgHooks['ParserBeforeStrip'][] = 'smwfRegisterInlineQueries'; |
91 | 91 | |
92 | 92 | // This hook registers a hook in the parser |
93 | 93 | function smwfRegisterInlineQueries( $semantic, $mediawiki, $rules ) { |
— | — | @@ -467,7 +467,7 @@ |
468 | 468 | $parser = new Parser(); |
469 | 469 | $parserOptions = new ParserOptions(); |
470 | 470 | //$parserOptions->setInterfaceMessage( true ); |
471 | | - $parser->startExternalParse( $wgTitle, $parserOptions, OT_MSG ); |
| 471 | + $parser->startExternalParse( $wgTitle, $parserOptions, OT_HTML ); |
472 | 472 | $text = $parser->transformMsg( $text, $parserOptions ); |
473 | 473 | |
474 | 474 | $this->dbr =& wfGetDB( DB_SLAVE ); // Note: if this fails, there were worse errors before; don't check it |