[Mapbender-commits] r8766 - branches/2.7/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Jan 31 03:24:25 PST 2014
Author: verenadiewald
Date: 2014-01-31 03:24:25 -0800 (Fri, 31 Jan 2014)
New Revision: 8766
Modified:
branches/2.7/http/classes/class_wmcToXml.php
Log:
$currentLayer->layer_metadataurl is an array, so use $currentLayer->layer_metadataurl[0]->href for getting the href
Modified: branches/2.7/http/classes/class_wmcToXml.php
===================================================================
--- branches/2.7/http/classes/class_wmcToXml.php 2014-01-31 11:24:08 UTC (rev 8765)
+++ branches/2.7/http/classes/class_wmcToXml.php 2014-01-31 11:24:25 UTC (rev 8766)
@@ -327,7 +327,7 @@
$e_layer_metadata_url_or = $this->doc->createElement("OnlineResource");
$e_layer_metadata_url_or->setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink");
$e_layer_metadata_url_or->setAttribute("xlink:type", "simple");
- $e_layer_metadata_url_or->setAttribute("xlink:href", $currentLayer->layer_metadataurl);
+ $e_layer_metadata_url_or->setAttribute("xlink:href", $currentLayer->layer_metadataurl[0]->href);
$e_layer_metadata_url->appendChild($e_layer_metadata_url_or);
$e_layer->appendChild($e_layer_metadata_url);
}
More information about the Mapbender_commits
mailing list