[Mapbender-commits] r8191 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Oct 25 09:57:33 EDT 2011
Author: kmq
Date: 2011-10-25 06:57:33 -0700 (Tue, 25 Oct 2011)
New Revision: 8191
Modified:
trunk/mapbender/http/php/mod_loadCapabilitiesList.php
Log:
small optimization when processing wmsList
Modified: trunk/mapbender/http/php/mod_loadCapabilitiesList.php
===================================================================
--- trunk/mapbender/http/php/mod_loadCapabilitiesList.php 2011-10-18 11:48:25 UTC (rev 8190)
+++ trunk/mapbender/http/php/mod_loadCapabilitiesList.php 2011-10-25 13:57:33 UTC (rev 8191)
@@ -273,9 +273,10 @@
$res = db_prep_query($sql, $v, $t);
echo "<select class='select1' name='wmsID' size='20' onchange='submit()'>";
$cnt = 0;
+ $owner = Mapbender::session()->get("mb_user_id");
while($row = db_fetch_array($res)){
echo "<option title='".htmlentities($row["wms_abstract"],ENT_QUOTES,"UTF-8")."' value='".$row["wms_id"]."' ";
- if($row["wms_owner"] == Mapbender::session()->get("mb_user_id")){
+ if($row["wms_owner"] == $owner){
echo "style='color:green' ";
}
else{
More information about the Mapbender_commits
mailing list