From cd63cd589813bac1408205cc0621baf3477a5d5c Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 28 Nov 2012 18:04:03 -0200 Subject: Using QUERY_STRING instead of argv --- gmap_arcgis.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gmap_arcgis.module b/gmap_arcgis.module index 3387dd7..5c75a67 100644 --- a/gmap_arcgis.module +++ b/gmap_arcgis.module @@ -273,7 +273,7 @@ function gmap_arcgis_mapserver() { $pattern = '/_[0-9]*._callback/'; $dynamic = FALSE; - $request = $_SERVER['argv'][0]; + $request = $_SERVER['QUERY_STRING']; $query = str_replace('q=gmap_arcgis/mapserver/', '', $request); $query = preg_replace('/&/', '?', $query, 1); $dest = $base . $query; -- cgit v1.2.3