Index: branches/SemanticMaps0.8/includes/queryprinters/SM_QueryHandler.php |
— | — | @@ -402,8 +402,8 @@ |
403 | 403 | $locations = array(); |
404 | 404 | |
405 | 405 | if ( $this->template ) { |
406 | | - $parser = new Parser(); |
407 | | - global $wgTitle; |
| 406 | + global $wgParser; |
| 407 | + $parser = clone $wgParser; |
408 | 408 | } |
409 | 409 | else { |
410 | 410 | $text .= implode( '<br />', $properties ); |
— | — | @@ -421,7 +421,7 @@ |
422 | 422 | $properties |
423 | 423 | ); |
424 | 424 | |
425 | | - $text .= $parser->parse( '{{' . implode( '|', $segments ) . '}}', $wgTitle, new ParserOptions() )->getText(); |
| 425 | + $text .= $parser->parse( '{{' . implode( '|', $segments ) . '}}', $parser->getTitle(), new ParserOptions() )->getText(); |
426 | 426 | } |
427 | 427 | |
428 | 428 | $location->setTitle( $title ); |