Remove an ugly hack in google maps link generation as current version of google maps...
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 1 Oct 2007 22:01:36 +0000 (00:01 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 1 Oct 2007 22:01:36 +0000 (00:01 +0200)
behave properly.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
plugins/function.display_address.php

index 25c991e..b755e92 100644 (file)
@@ -59,7 +59,7 @@ function smarty_function_display_address($param, &$smarty)
 
     $txthtml = "";
     $map = "<a href=\"http://maps.google.fr/?q="
-        .   urlencode(str_replace('États-Unis d\'Amérique', 'USA', implode(", ", $lines) . " ($idt)"))
+        .   urlencode(implode(", ", $lines) . " ($idt)")
         . "\"><img src=\"images/icons/map.gif\" alt=\"Google Maps\" title=\"Carte\"/></a>";
     if ($restore) {
         array_unshift($lines, $idt);