[Mapbender-commits] r9093 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Oct 15 02:32:17 PDT 2014
Author: armin11
Date: 2014-10-15 02:32:17 -0700 (Wed, 15 Oct 2014)
New Revision: 9093
Modified:
trunk/mapbender/http/php/mod_inspireDownloadFeed.php
Log:
Bugfix for php 5.4 - parsing json via json_decode was changed ;-)
Modified: trunk/mapbender/http/php/mod_inspireDownloadFeed.php
===================================================================
--- trunk/mapbender/http/php/mod_inspireDownloadFeed.php 2014-10-13 13:21:06 UTC (rev 9092)
+++ trunk/mapbender/http/php/mod_inspireDownloadFeed.php 2014-10-15 09:32:17 UTC (rev 9093)
@@ -1430,7 +1430,7 @@
case "dataurl":
$furtherLink = $datasetLink;
$furtherLinkType = $mapbenderMetadata[$i]->datalink_format;
- $furtherLinkTitle = $ressourceTitle." im CRS ".$mapbenderMetadata[$i]->metadata_ref_system."(".$mapbenderMetadata[$m]->format.")";
+ $furtherLinkTitle = $ressourceTitle." im CRS ".$mapbenderMetadata[$i]->metadata_ref_system."(".$mapbenderMetadata[$i]->format.")";
//generate content link
$feedEntryLink = $feedDoc->createElement("link");
$feedEntryLink->setAttribute("rel", "section");
@@ -1443,7 +1443,13 @@
break;
case "metadata":
$downloadLinks = json_decode($mapbenderMetadata[$i]->datalinks);
- $furtherLink = urldecode($downloadLinks->downloadLinks[0]);
+ $e = new mb_exception(gettype($downloadLinks));
+ $e = new mb_exception(gettype($downloadLinks->downloadLinks));
+ $e = new mb_exception(count($downloadLinks->downloadLinks));
+ $e = new mb_exception(gettype($downloadLinks->downloadLinks[0]->{"0"}));
+ $e = new mb_exception($mapbenderMetadata[$i]->datalinks);
+ $e = new mb_exception($mapbenderMetadata[$i]->metadata_ref_system);
+ $furtherLink = urldecode($downloadLinks->downloadLinks[0]->{"0"});
$furtherLinkType = $formatsMimetype[$mapbenderMetadata[$i]->format];
$furtherLinkTitle = $ressourceTitle." im CRS ".$mapbenderMetadata[$i]->metadata_ref_system."(".$mapbenderMetadata[$i]->format.")";
//generate content link
More information about the Mapbender_commits
mailing list