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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri May 11 00:27:36 EDT 2012


Author: armin11
Date: 2012-05-10 21:27:36 -0700 (Thu, 10 May 2012)
New Revision: 8347

Modified:
   trunk/mapbender/http/classes/class_wms.php
Log:
Adoptions for inspire datalink.

Modified: trunk/mapbender/http/classes/class_wms.php
===================================================================
--- trunk/mapbender/http/classes/class_wms.php	2012-05-11 04:26:35 UTC (rev 8346)
+++ trunk/mapbender/http/classes/class_wms.php	2012-05-11 04:27:36 UTC (rev 8347)
@@ -2337,7 +2337,7 @@
 			//push single elements into database
 			//generate random number
 			$randomId = new Uuid();
-			$sql = "INSERT INTO datalink (datalink_url, datalink_timestamp, datalink_timestamp_create, datalink_origin, datalink_format, randomid) ";
+			$sql = "INSERT INTO datalink (datalink_url, datalink_timestamp, datalink_timestamp_create, datalink_origin, datalink_format, datalink_randomid) ";
 			$sql .= "VALUES($1, now(), now(), 'capabilities', $2, $3)";
 			$v = array(	$this->objLayer[$i]->layer_dataurl[$j]->href,
 					$this->objLayer[$i]->layer_dataurl[$j]->format,
@@ -2354,7 +2354,7 @@
 			//get datalink_id of record which have been inserted before
 			$sql = <<<SQL
 
-SELECT datalink_id FROM datalink WHERE randomid = $1
+SELECT datalink_id FROM datalink WHERE datalink_randomid = $1
 
 SQL;
 			$v = array($randomId);



More information about the Mapbender_commits mailing list