Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinters.php |
— | — | @@ -600,7 +600,7 @@ |
601 | 601 | |
602 | 602 | public function getHTML($res) { |
603 | 603 | // handle factbox |
604 | | - global $smwgStoreActive; |
| 604 | + global $smwgStoreActive, $wgTitle; |
605 | 605 | $old_smwgStoreActive = $smwgStoreActive; |
606 | 606 | $smwgStoreActive = false; // no annotations stored, no factbox printed |
607 | 607 | |
— | — | @@ -645,7 +645,7 @@ |
646 | 646 | } else { |
647 | 647 | $articlename = $object->getPrefixedText(); |
648 | 648 | } |
649 | | - $parserOutput = $parser->parse('{{' . $articlename . '}}', $object->getTitle(), $parser_options); |
| 649 | + $parserOutput = $parser->parse('{{' . $articlename . '}}', $wgTitle, $parser_options); |
650 | 650 | $result .= $parserOutput->getText(); |
651 | 651 | $result .= $embend; |
652 | 652 | } |