[Mapbender-commits] r10306 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Oct 28 09:50:07 PDT 2019


Author: armin11
Date: 2019-10-28 09:50:07 -0700 (Mon, 28 Oct 2019)
New Revision: 10306

Modified:
   trunk/mapbender/http/classes/class_administration.php
Log:
Fix for mapviewer_type api script on root level

Modified: trunk/mapbender/http/classes/class_administration.php
===================================================================
--- trunk/mapbender/http/classes/class_administration.php	2019-10-28 14:05:03 UTC (rev 10305)
+++ trunk/mapbender/http/classes/class_administration.php	2019-10-28 16:50:07 UTC (rev 10306)
@@ -2435,7 +2435,11 @@
 	    $paramters[$api->wmc_param] = $wmcId;
 	}
 	$query = http_build_query($paramters);
-        return $api->protocol."://".$api->server_name."/".$api->server_path."/".$api->server_script."?".$query;
+	if ($api->server_path == "") {
+            return $api->protocol."://".$api->server_name."/".$api->server_script."?".$query;
+	} else {
+            return $api->protocol."://".$api->server_name."/".$api->server_path."/".$api->server_script."?".$query;
+	}
     }
 
    function getMetadataPreviewUrl($metadataId) {



More information about the Mapbender_commits mailing list