r77337 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77336‎ | r77337 | r77338 >
Date:18:45, 26 November 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Small KML fix
Modified paths:
  • /trunk/extensions/Maps/Maps.php (modified) (history)
  • /trunk/extensions/Maps/includes/Maps_KMLFormatter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/Maps.php
@@ -36,7 +36,7 @@
3737 echo '<b>Warning:</b> You need to have <a href="http://www.mediawiki.org/wiki/Extension:Validator">Validator</a> installed in order to use <a href="http://www.mediawiki.org/wiki/Extension:Maps">Maps</a>.';
3838 }
3939 else {
40 - define( 'Maps_VERSION', '0.7.3 a3' );
 40+ define( 'Maps_VERSION', '0.7.3 beta 1' );
4141
4242 // The different coordinate notations.
4343 define( 'Maps_COORDS_FLOAT', 'float' );
Index: trunk/extensions/Maps/includes/Maps_KMLFormatter.php
@@ -129,7 +129,7 @@
130130 * @return string
131131 */
132132 protected function getKMLForLocation( MapsLocation $location ) {
133 - $name = Xml::element( 'name', array(), $location->getTitle() );
 133+ $name = '<name><![CDATA[ ' . $location->getTitle() . ']]></name>';
134134
135135 $description = '<description><![CDATA[ ' . $location->getText() . ']]></description>';
136136

Status & tagging log