r25775 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25774‎ | r25775 | r25776 >
Date:14:17, 11 September 2007
Author:mkroetzsch
Status:old
Tags:
Comment:
Use $wgTitle for embedded parsing (relevant to make self links in embedded pages work)
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinters.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinters.php
@@ -600,7 +600,7 @@
601601
602602 public function getHTML($res) {
603603 // handle factbox
604 - global $smwgStoreActive;
 604+ global $smwgStoreActive, $wgTitle;
605605 $old_smwgStoreActive = $smwgStoreActive;
606606 $smwgStoreActive = false; // no annotations stored, no factbox printed
607607
@@ -645,7 +645,7 @@
646646 } else {
647647 $articlename = $object->getPrefixedText();
648648 }
649 - $parserOutput = $parser->parse('{{' . $articlename . '}}', $object->getTitle(), $parser_options);
 649+ $parserOutput = $parser->parse('{{' . $articlename . '}}', $wgTitle, $parser_options);
650650 $result .= $parserOutput->getText();
651651 $result .= $embend;
652652 }

Status & tagging log