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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Nov 24 06:00:46 EST 2010


Author: verenadiewald
Date: 2010-11-24 03:00:45 -0800 (Wed, 24 Nov 2010)
New Revision: 7149

Modified:
   trunk/mapbender/http/php/mod_savewmc_server.php
Log:
set wmc_keyword 

Modified: trunk/mapbender/http/php/mod_savewmc_server.php
===================================================================
--- trunk/mapbender/http/php/mod_savewmc_server.php	2010-11-24 09:48:45 UTC (rev 7148)
+++ trunk/mapbender/http/php/mod_savewmc_server.php	2010-11-24 11:00:45 UTC (rev 7149)
@@ -77,7 +77,11 @@
 		$wmc->wmc_srs	  = $map->epsg;
 	}
 	// make a keyword array here
-	$wmc->keyword = explode(" ",$attributes->keywords);
+	$wmc->wmc_keyword = explode(",",$attributes->keywords);
+	foreach ($wmc->keyword as &$val) {
+		$val = trim($val);
+	}
+	
 	$wmc->wmc_abstract = $attributes->abstract;
 	$isoTopicCat = $attributes->isoTopicCat;
 	foreach($isoTopicCat as $cat => $val) {



More information about the Mapbender_commits mailing list