svn commit: r452 - trunk/mapbender/http/classes/class_wms.php

uli at osgeo.org uli at osgeo.org
Wed Jun 14 08:33:28 EDT 2006


Author: uli
Date: 2006-06-14 12:33:27+0000
New Revision: 452

Modified:
   trunk/mapbender/http/classes/class_wms.php

Log:
set layertilte as layername if layername is empty

Modified: trunk/mapbender/http/classes/class_wms.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/classes/class_wms.php?view=diff&rev=452&p1=trunk/mapbender/http/classes/class_wms.php&p2=trunk/mapbender/http/classes/class_wms.php&r1=451&r2=452
==============================================================================
--- trunk/mapbender/http/classes/class_wms.php	(original)
+++ trunk/mapbender/http/classes/class_wms.php	2006-06-14 12:33:27+0000
@@ -440,6 +440,9 @@
 		}
 	}
 	for($i=0;$i<count($this->objLayer);$i++){
+		if($this->objLayer[$i]->layer_name == ""){
+			$this->objLayer[$i]->layer_name = $this->objLayer[$i]->layer_title;
+		}
 		if($this->objLayer[$i]->layer_minscale == ""){
 			$this->objLayer[$i]->layer_minscale = 0;
 		}




More information about the Mapbender_commits mailing list