[Mapbender-commits] r8242 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Feb 13 03:00:18 EST 2012
Author: armin11
Date: 2012-02-13 00:00:18 -0800 (Mon, 13 Feb 2012)
New Revision: 8242
Modified:
trunk/mapbender/http/php/mod_getWmcDisclaimer.php
Log:
Rewind disclaimer information for wmc. Show upper layer terms of use at first position.
Modified: trunk/mapbender/http/php/mod_getWmcDisclaimer.php
===================================================================
--- trunk/mapbender/http/php/mod_getWmcDisclaimer.php 2012-02-13 07:59:03 UTC (rev 8241)
+++ trunk/mapbender/http/php/mod_getWmcDisclaimer.php 2012-02-13 08:00:18 UTC (rev 8242)
@@ -111,8 +111,9 @@
$mapbenderProtocol = "http://";
}
-foreach($validWMS as $WMS) {
-
+$countWMS = count($validWMS);
+for ($i = 0; $i < $countWMS; $i++) {
+ $WMS = $validWMS[$countWMS - ($i+1)];
echo $resourceSymbol." <a href='".$mapbenderBaseUrl.$_SERVER['SCRIPT_NAME']."/../mod_showMetadata.php?resource=wms&layout=tabs&id=".$WMS['id']."&languageCode=".$languageCode."'>".$WMS['title']."</a><br>";
$touServiceConnector = new connector($mapbenderProtocol."localhost".$_SERVER['SCRIPT_NAME']."/../mod_getServiceDisclaimer.php?type=wms&id=".$WMS['id']."&languageCode=".$languageCode."&asTable=true");
More information about the Mapbender_commits
mailing list