From: philipp Date: Sat, 20 Dec 2008 23:06:50 +0000 (+0000) Subject: Fixed errors. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/mediawiki_extensions/wrmap.git/commitdiff_plain/d96ffb37ed8e58615b4047fd8175f74ec0a498ca?ds=sidebyside Fixed errors. git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/extensions/wrmap@354 7aebc617-e5e2-0310-91dc-80fb5f6d2477 --- 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"; } }