[Mapbender-commits] r8243 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Feb 13 03:00:28 EST 2012
Author: armin11
Date: 2012-02-13 00:00:28 -0800 (Mon, 13 Feb 2012)
New Revision: 8243
Modified:
trunk/mapbender/http/javascripts/initWmcObj.php
Log:
Rewind disclaimer information for wmc. Show upper layer terms of use at first position.
Modified: trunk/mapbender/http/javascripts/initWmcObj.php
===================================================================
--- trunk/mapbender/http/javascripts/initWmcObj.php 2012-02-13 08:00:18 UTC (rev 8242)
+++ trunk/mapbender/http/javascripts/initWmcObj.php 2012-02-13 08:00:28 UTC (rev 8243)
@@ -412,7 +412,9 @@
$hostName = $_SERVER['HTTP_HOST'];
$tou = "";
$classTou = new tou();
-foreach($validWMS as $WMS) {
+$countWMS = count($validWMS);
+for ($i = 0; $i < $countWMS; $i++) {
+ $WMS = $validWMS[$countWMS - ($i+1)];
//check if tou has already been read - if not show them in the message
$resultOfCheck = $classTou->check('wms',$WMS['id']);
if ($resultOfCheck['accepted'] == 0) {
More information about the Mapbender_commits
mailing list