aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2012-11-28 18:04:03 -0200
committerSilvio <silvio@socioambiental.org>2012-11-28 18:04:03 -0200
commitcd63cd589813bac1408205cc0621baf3477a5d5c (patch)
treef1dee52190a7fdc922699433ab29879912f7ea2c
parent035e9195be502b917118ca70651232c38fbee249 (diff)
downloadgmap_arcgis-cd63cd589813bac1408205cc0621baf3477a5d5c.tar.gz
gmap_arcgis-cd63cd589813bac1408205cc0621baf3477a5d5c.tar.bz2
Using QUERY_STRING instead of argv
-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;