Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_List.php |
— | — | @@ -129,7 +129,13 @@ |
130 | 130 | $parserOutput = $parser->parse($result, $wgTitle, $parser_options); |
131 | 131 | $result = $parserOutput->getText(); |
132 | 132 | } else { |
133 | | - $result = $parser->preprocess($result, $wgTitle, $parser_options); |
| 133 | + if ( method_exists($parser, 'getPreprocessor') ) { |
| 134 | + $frame = $parser->getPreprocessor()->newFrame(); |
| 135 | + $dom = $parser->preprocessToDom( $result ); |
| 136 | + $result = $frame->expand( $dom ); |
| 137 | + } else { |
| 138 | + $result = $parser->preprocess($result, $wgTitle, $parser_options); |
| 139 | + } |
134 | 140 | } |
135 | 141 | $smwgStoreActive = $old_smwgStoreActive; |
136 | 142 | } |