http://www.mediawiki.org/wiki/Special:Code/MediaWiki/54958

Revision: 54958
Author:   jeroendedauw
Date:     2009-08-13 18:39:05 +0000 (Thu, 13 Aug 2009)

Log Message:
-----------
Changes for 0.3.

Modified Paths:
--------------
    trunk/extensions/SemanticMaps/GoogleMaps/SM_GoogleMaps.php
    trunk/extensions/SemanticMaps/OpenLayers/SM_OpenLayers.php
    trunk/extensions/SemanticMaps/YahooMaps/SM_YahooMaps.php

Modified: trunk/extensions/SemanticMaps/GoogleMaps/SM_GoogleMaps.php
===================================================================
--- trunk/extensions/SemanticMaps/GoogleMaps/SM_GoogleMaps.php  2009-08-13 
18:01:41 UTC (rev 54957)
+++ trunk/extensions/SemanticMaps/GoogleMaps/SM_GoogleMaps.php  2009-08-13 
18:39:05 UTC (rev 54958)
@@ -75,8 +75,10 @@
                foreach ($this->m_locations as $location) {
                        // Create a string containing the marker JS 
                        list($lat, $lon, $title, $label, $icon) = $location;
+                       
                        $title = str_replace("'", "\'", $title);
                        $label = str_replace("'", "\'", $label);
+                       
                        $markerItems[] = "getGMarkerData($lat, $lon, '$title', 
'$label', '$icon')";
                }
                

Modified: trunk/extensions/SemanticMaps/OpenLayers/SM_OpenLayers.php
===================================================================
--- trunk/extensions/SemanticMaps/OpenLayers/SM_OpenLayers.php  2009-08-13 
18:01:41 UTC (rev 54957)
+++ trunk/extensions/SemanticMaps/OpenLayers/SM_OpenLayers.php  2009-08-13 
18:39:05 UTC (rev 54958)
@@ -68,9 +68,11 @@
                foreach ($this->m_locations as $location) {
                        // Create a string containing the marker JS 
                        list($lat, $lon, $title, $label, $icon) = $location;
+                       
                        $title = str_replace("'", "\'", $title);
                        $label = str_replace("'", "\'", $label);
-                       $markerItems[] = "getOLMarkerData($lon, $lat, '$title', 
'$label')";
+                       
+                       $markerItems[] = "getOLMarkerData($lon, $lat, '$title', 
'$label', '$icon')";
                }
                
                $markersString = implode(',', $markerItems);            

Modified: trunk/extensions/SemanticMaps/YahooMaps/SM_YahooMaps.php
===================================================================
--- trunk/extensions/SemanticMaps/YahooMaps/SM_YahooMaps.php    2009-08-13 
18:01:41 UTC (rev 54957)
+++ trunk/extensions/SemanticMaps/YahooMaps/SM_YahooMaps.php    2009-08-13 
18:39:05 UTC (rev 54958)
@@ -68,9 +68,11 @@
                foreach ($this->m_locations as $location) {
                        // Create a string containing the marker JS 
                        list($lat, $lon, $title, $label, $icon) = $location;
+                       
                        $title = str_replace("'", "\'", $title);
                        $label = str_replace("'", "\'", $label);
-                       $markerItems[] = "getYMarkerData($lat, $lon, '$title', 
'$label', '')";
+                       
+                       $markerItems[] = "getYMarkerData($lat, $lon, '$title', 
'$label', '$icon')";
                }
                
                $markersString = implode(',', $markerItems);



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to