r61091 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61090‎ | r61091 | r61092 >
Date:18:10, 15 January 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Changes for 0.5.2. Added named parameters to result format template support.
Modified paths:
  • /trunk/extensions/SemanticMaps/QueryPrinters/SM_MapPrinter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMaps/QueryPrinters/SM_MapPrinter.php
@@ -217,13 +217,15 @@
218218
219219 if ($this->template) {
220220 global $wgParser;
221 - $segments = array_merge(array($this->template, $titleForTemplate, $lat, $lon), $label);
 221+ $segments = array_merge(
 222+ array($this->template, 'title=' . $titleForTemplate, 'latitude=' . $lat, 'longitude=' . $lon),
 223+ $label
 224+ );
222225 $text = $wgParser->recursiveTagParse('{{' . implode('|', $segments) . '}}');
223226 }
224227
225228 $this->m_locations[] = array($lat, $lon, $title, $text, $icon);
226229 }
227 -
228230 }
229231 }
230232 }

Status & tagging log