r31799 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r31798‎ | r31799 | r31800 >
Date:16:48, 11 March 2008
Author:mkroetzsch
Status:old
Tags:
Comment:
Updated to work around bug 12906
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QP_Template.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_Template.php
@@ -63,7 +63,13 @@
6464 $parserOutput = $parser->parse($parserinput, $wgTitle, $parser_options);
6565 $result = $parserOutput->getText();
6666 } 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+ }
6874 }
6975 $smwgStoreActive = $old_smwgStoreActive;
7076 // show link to more results

Follow-up revisions

RevisionCommit summaryAuthorDate
r31800Workaround for bug 12906 as suggested in the bug report.mkroetzsch16:55, 11 March 2008
r32963apply lsth patch from bug 12906, update lst parser test for redlink=1 featuresanbeg15:55, 8 April 2008

Status & tagging log