From d96ffb37ed8e58615b4047fd8175f74ec0a498ca Mon Sep 17 00:00:00 2001 From: philipp Date: Sat, 20 Dec 2008 23:06:50 +0000 Subject: [PATCH] Fixed errors. git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/extensions/wrmap@354 7aebc617-e5e2-0310-91dc-80fb5f6d2477 --- wrmap.body.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wrmap.body.php b/wrmap.body.php index 7b1f33c..d6527a4 100644 --- a/wrmap.body.php +++ b/wrmap.body.php @@ -103,7 +103,7 @@ class WrGoogleMaps { // Load Google Maps Script and define functions $output = ''; if ($this->mapsCount == 1) { - $output .= '' . "\n"; $output .= WRGMAPJSFUNCTIONS; } @@ -128,7 +128,7 @@ class WrGoogleMaps { // returns a string that creates a map object called 'map' private function addMap($mapName) { - return "\tmap = new GMap2(document.getElementById($mapName));\n" . + return "\tmap = new GMap2(document.getElementById(\"$mapName\"));\n" . "\tmap.addControl(new GLargeMapControl());\n" . "\tmap.addControl(new GMapTypeControl());\n" . "\tmap.addControl(new GScaleControl());\n" . @@ -139,7 +139,7 @@ class WrGoogleMaps { // returns a string with a add marker javascript call private function addJsMarker($latitude, $longitude, $pageTitle) { - return "\tmap.AddOverlay(wrCreateMarker($latitude, $longitude, \"" . htmlspecialchars(addslashes($pageTitle)) . "\", wrSleddingIcon));\n"; + return "\tmap.addOverlay(wrCreateMarker($latitude, $longitude, \"" . htmlspecialchars(addslashes($pageTitle)) . "\", wrSleddingIcon));\n"; } } -- 2.30.2