r84086 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84085‎ | r84086 | r84087 >
Date:11:19, 16 March 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
follow up to r84085
Modified paths:
  • /branches/SemanticMaps0.8/includes/queryprinters/SM_QueryHandler.php (modified) (history)

Diff [purge]

Index: branches/SemanticMaps0.8/includes/queryprinters/SM_QueryHandler.php
@@ -402,8 +402,8 @@
403403 $locations = array();
404404
405405 if ( $this->template ) {
406 - $parser = new Parser();
407 - global $wgTitle;
 406+ global $wgParser;
 407+ $parser = clone $wgParser;
408408 }
409409 else {
410410 $text .= implode( '<br />', $properties );
@@ -421,7 +421,7 @@
422422 $properties
423423 );
424424
425 - $text .= $parser->parse( '{{' . implode( '|', $segments ) . '}}', $wgTitle, new ParserOptions() )->getText();
 425+ $text .= $parser->parse( '{{' . implode( '|', $segments ) . '}}', $parser->getTitle(), new ParserOptions() )->getText();
426426 }
427427
428428 $location->setTitle( $title );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r84085fixing bug 27272jeroendedauw11:03, 16 March 2011

Status & tagging log