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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Sep 10 04:58:10 PDT 2014


Author: armin11
Date: 2014-09-10 04:58:10 -0700 (Wed, 10 Sep 2014)
New Revision: 9068

Modified:
   trunk/mapbender/http/classes/class_wms.php
Log:
some further little bugfix for more than one coupled metadata

Modified: trunk/mapbender/http/classes/class_wms.php
===================================================================
--- trunk/mapbender/http/classes/class_wms.php	2014-09-10 11:37:14 UTC (rev 9067)
+++ trunk/mapbender/http/classes/class_wms.php	2014-09-10 11:58:10 UTC (rev 9068)
@@ -3351,9 +3351,9 @@
 				if (defined("SHOW_INSPIRE_DOWNLOAD_IN_TREE") && SHOW_INSPIRE_DOWNLOAD_IN_TREE == true && $row2["downloadoptions"] != "") {
 					//delete {} from downloadoptions and add url
 					if (defined("MAPBENDER_PATH") && MAPBENDER_PATH != "") {
-						$downloadOptionsUrl = MAPBENDER_PATH."/php/mod_getDownloadOptions.php?outputFormat=html&id=".str_replace('{','',str_replace('}','',$row2["downloadoptions"]));
+						$downloadOptionsUrl = MAPBENDER_PATH."/php/mod_getDownloadOptions.php?outputFormat=html&id=".str_replace('{','',str_replace('}','',str_replace('}{',',',$row2["downloadoptions"])));
 					} else {
-						$downloadOptionsUrl = "../php/mod_getDownloadOptions.php?outputFormat=html&id=".str_replace('{','',str_replace('}','',$row2["downloadoptions"]));
+						$downloadOptionsUrl = "../php/mod_getDownloadOptions.php?outputFormat=html&id=".str_replace('{','',str_replace('}','',str_replace('}{',',',$row2["downloadoptions"])));
 					}
 					$this->objLayer[$layer_cnt]->layer_dataurl[0]->href = $downloadOptionsUrl;
 				}
@@ -3568,9 +3568,9 @@
 			if (defined("SHOW_INSPIRE_DOWNLOAD_IN_TREE") && SHOW_INSPIRE_DOWNLOAD_IN_TREE == true && $row2["downloadoptions"] != "") {
 				//delete {} from downloadoptions and add url
 				if (defined("MAPBENDER_PATH") && MAPBENDER_PATH != "") {
-					$downloadOptionsUrl = MAPBENDER_PATH."/php/mod_getDownloadOptions.php?outputFormat=html&id=".str_replace('{','',str_replace('}','',$row2["downloadoptions"]));
+					$downloadOptionsUrl = MAPBENDER_PATH."/php/mod_getDownloadOptions.php?outputFormat=html&id=".str_replace('{','',str_replace('}','',str_replace('}{',',',$row2["downloadoptions"])));
 				} else {
-					$downloadOptionsUrl = "../php/mod_getDownloadOptions.php?outputFormat=html&id=".str_replace('{','',str_replace('}','',$row2["downloadoptions"]));
+					$downloadOptionsUrl = "../php/mod_getDownloadOptions.php?outputFormat=html&id=".str_replace('{','',str_replace('}','',str_replace('}{',',',$row2["downloadoptions"])));
 				}
 				$this->objLayer[$layer_cnt]->layer_dataurl[0]->href = $downloadOptionsUrl;					
 			}



More information about the Mapbender_commits mailing list