r61257 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61256‎ | r61257 | r61258 >
Date:17:20, 19 January 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Changes for 0.5.2.
* Fixed issue with new lines in query printer template support.
Modified paths:
  • /trunk/extensions/SemanticMaps/INSTALL (modified) (history)
  • /trunk/extensions/SemanticMaps/QueryPrinters/SM_MapPrinter.php (modified) (history)
  • /trunk/extensions/SemanticMaps/RELEASE-NOTES (modified) (history)
  • /trunk/extensions/SemanticMaps/SemanticMaps.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMaps/INSTALL
@@ -1,4 +1,4 @@
2 -[[Semantic Maps 0.5.1]]
 2+[[Semantic Maps 0.5.2]]
33
44 Make sure you have Semantic MediaWiki and Maps successfully installed before
55 proceeding with the installation. Once you have downloaded the code, place
Index: trunk/extensions/SemanticMaps/RELEASE-NOTES
@@ -6,6 +6,21 @@
77 http://www.mediawiki.org/wiki/Extension:Semantic_Maps/Version_history#Semantic_Maps_change_log
88
99
 10+=== Semantic Maps 0.5.2 ===
 11+(2010-01-20)
 12+
 13+==== New features ====
 14+
 15+* Added support for template= parameter to the result printers.
 16+
 17+* Added icon parameter to the query printers, allowing you to set the icon for all markers that do not have a specific icon assigned via a compound query.
 18+
 19+==== Bug fixes ====
 20+
 21+* Added missing SMW #Ask: parameters to the parameter list of the Semantic Maps query printers.
 22+
 23+* Fixed issue with centre parameter for maps with no results (using forceshow=on).
 24+
1025 === Semantic Maps 0.5.1 ===
1126 (2009-12-25)
1227
Index: trunk/extensions/SemanticMaps/SemanticMaps.php
@@ -35,7 +35,7 @@
3636
3737 // Only initialize the extension when all dependencies are present.
3838 if (defined( 'Maps_VERSION' ) && defined( 'SMW_VERSION' )) {
39 - define('SM_VERSION', '0.5.2 rc2');
 39+ define('SM_VERSION', '0.5.2');
4040
4141 $smgScriptPath = $wgScriptPath . '/extensions/SemanticMaps';
4242 $smgIP = $IP . '/extensions/SemanticMaps';
Index: trunk/extensions/SemanticMaps/QueryPrinters/SM_MapPrinter.php
@@ -221,7 +221,7 @@
222222 array($this->template, 'title=' . $titleForTemplate, 'latitude=' . $lat, 'longitude=' . $lon),
223223 $label
224224 );
225 - $text = $wgParser->recursiveTagParse('{{' . implode('|', $segments) . '}}');
 225+ $text = preg_replace('/\n+/m', '<br />', $wgParser->recursiveTagParse('{{' . implode('|', $segments) . '}}'));
226226 }
227227
228228 $this->m_locations[] = array($lat, $lon, $title, $text, $icon);

Status & tagging log