Index: trunk/extensions/SemanticMaps/includes/queryprinters/SM_MapPrinter.php |
— | — | @@ -284,7 +284,6 @@ |
285 | 285 | protected function handleMarkerData( array &$params, array $queryLocations ) { |
286 | 286 | global $wgParser; |
287 | 287 | |
288 | | - $parserClone = clone $wgParser; |
289 | 288 | $iconUrl = MapsMapper::getFileUrl( $params['icon'] ); |
290 | 289 | $params['locations'] = array(); |
291 | 290 | |
— | — | @@ -292,8 +291,8 @@ |
293 | 292 | if ( $location->isValid() ) { |
294 | 293 | $jsonObj = $location->getJSONObject( $params['title'], $params['label'], $iconUrl ); |
295 | 294 | |
296 | | - $jsonObj['title'] = $parserClone->parse( $jsonObj['title'], $parserClone->getTitle(), new ParserOptions() )->getText(); |
297 | | - $jsonObj['text'] = $parserClone->parse( $jsonObj['text'], $parserClone->getTitle(), new ParserOptions() )->getText(); |
| 295 | + $jsonObj['title'] = $wgParser->parse( $jsonObj['title'], $wgParser->getTitle(), new ParserOptions() )->getText(); |
| 296 | + $jsonObj['text'] = $wgParser->parse( $jsonObj['text'], $wgParser->getTitle(), new ParserOptions() )->getText(); |
298 | 297 | |
299 | 298 | $hasTitleAndtext = $jsonObj['title'] != '' && $jsonObj['text'] != ''; |
300 | 299 | $jsonObj['text'] = ( $hasTitleAndtext ? '<b>' . $jsonObj['title'] . '</b><hr />' : $jsonObj['title'] ) . $jsonObj['text']; |