[Mapbender-commits] r8174 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Oct 3 05:55:57 EDT 2011


Author: armin11
Date: 2011-10-03 02:55:57 -0700 (Mon, 03 Oct 2011)
New Revision: 8174

Modified:
   trunk/mapbender/http/php/wms.php
Log:
Some bugfix for the last commit.

Modified: trunk/mapbender/http/php/wms.php
===================================================================
--- trunk/mapbender/http/php/wms.php	2011-10-03 09:45:50 UTC (rev 8173)
+++ trunk/mapbender/http/php/wms.php	2011-10-03 09:55:57 UTC (rev 8174)
@@ -1097,7 +1097,11 @@
 		//check id datasetid is set, if not use metadataid
 		if ($row_metadata["datasetid"] == '' || !isset($row_metadata["datasetid"])) {
 			//this column is empty, if metador was used and the identifier for dataset id is equal to the identifier of the metadata fileidentifier. In this case we expand a standard codespace http://www.geoportal.rlp.de TODO: use a define in mapbender.conf to pull the standard codespace from!
-			$datasetId = "http://www.geoportal.rlp.de"."#".$row_metadata["uuid"];
+			if (defined('METADATA_DEFAULT_CODESPACE')) {
+				$datasetId = METADATA_DEFAULT_CODESPACE."#".$row_metadata["uuid"];
+			} else {
+				$datasetId = "http://www.mapbender.org"."#".$row_metadata["uuid"];
+			}
 		} else {
 			$datasetId = $row_metadata["datasetid"]; //really datasetid or only second part?
 		}



More information about the Mapbender_commits mailing list