aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gmap_arcgis.module2
1 files changed, 1 insertions, 1 deletions
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;