[Mapbender-commits] r7930 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jul 12 11:21:49 EDT 2011


Author: kmq
Date: 2011-07-12 08:21:49 -0700 (Tue, 12 Jul 2011)
New Revision: 7930

Modified:
   trunk/mapbender/http/classes/class_element.php
Log:
when rendering page close tags automatically of user forgets to

Modified: trunk/mapbender/http/classes/class_element.php
===================================================================
--- trunk/mapbender/http/classes/class_element.php	2011-07-12 13:29:21 UTC (rev 7929)
+++ trunk/mapbender/http/classes/class_element.php	2011-07-12 15:21:49 UTC (rev 7930)
@@ -305,6 +305,12 @@
 		}
 		if ($this->closeTag != "") {
 			return "</" . $this->closeTag . ">";
+		} else {
+			if(in_array($this->element, array( "area", "base","br","col","hr","img","input","link","meta","param"))){
+				return  "";
+			}else{
+				return "</". $this->element . ">";
+			}
 		}
 		return "";
 	}



More information about the Mapbender_commits mailing list