r31800 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r31799‎ | r31800 | r31801 >
Date:16:55, 11 March 2008
Author:mkroetzsch
Status:old
Tags:
Comment:
Workaround for bug 12906 as suggested in the bug report.
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QP_List.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_List.php
@@ -129,7 +129,13 @@
130130 $parserOutput = $parser->parse($result, $wgTitle, $parser_options);
131131 $result = $parserOutput->getText();
132132 } 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+ }
134140 }
135141 $smwgStoreActive = $old_smwgStoreActive;
136142 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r32963apply lsth patch from bug 12906, update lst parser test for redlink=1 featuresanbeg15:55, 8 April 2008

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r31799Updated to work around bug 12906mkroetzsch16:48, 11 March 2008

Status & tagging log