Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_Template.php |
— | — | @@ -63,7 +63,13 @@ |
64 | 64 | $parserOutput = $parser->parse($parserinput, $wgTitle, $parser_options); |
65 | 65 | $result = $parserOutput->getText(); |
66 | 66 | } else { |
67 | | - $result = $parser->preprocess($parserinput, $wgTitle, $parser_options); |
| 67 | + if ( method_exists($parser, 'getPreprocessor') ) { |
| 68 | + $frame = $parser->getPreprocessor()->newFrame(); |
| 69 | + $dom = $parser->preprocessToDom( $parserinput ); |
| 70 | + $result = $frame->expand( $dom ); |
| 71 | + } else { |
| 72 | + $result = $parser->preprocess($parserinput, $wgTitle, $parser_options); |
| 73 | + } |
68 | 74 | } |
69 | 75 | $smwgStoreActive = $old_smwgStoreActive; |
70 | 76 | // show link to more results |