cvs: pear /HTML_Template_Flexy/Flexy Element.php
| From: | Alan Knowles | Date: | Sat, 12 Jun 2004 05:58:28 +0000 |
| Subject: | cvs: pear /HTML_Template_Flexy/Flexy Element.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-20537@lists.php.net to get a copy of this message | ||
alan_k Sat Jun 12 01:58:28 2004 EDT
Modified files:
/pear/HTML_Template_Flexy/Flexy Element.php
Log:
closer fix introduced yet another bug.. - ignoreing element suffix
http://cvs.php.net/diff.php/pear/HTML_Template_Flexy/Flexy/Element.php?r1=1.25&r2=1.26&ty=u
Index: pear/HTML_Template_Flexy/Flexy/Element.php
diff -u pear/HTML_Template_Flexy/Flexy/Element.php:1.25
pear/HTML_Template_Flexy/Flexy/Element.php:1.26
--- pear/HTML_Template_Flexy/Flexy/Element.php:1.25 Fri May 7 02:04:31 2004
+++ pear/HTML_Template_Flexy/Flexy/Element.php Sat Jun 12 01:58:28 2004
@@ -17,7 +17,7 @@
// | Based on HTML_Common by: Adam Daniel <adaniel1@eesus.jnj.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Element.php,v 1.25 2004/05/07 06:04:31 alan_k Exp $
+// $Id: Element.php,v 1.26 2004/06/12 05:58:28 alan_k Exp $
/**
* Lightweight HTML Element builder and render
@@ -495,8 +495,9 @@
$tag = $bits[1];
}
// tags that never should have closers
- $close = in_array(strtoupper($tag),array("INPUT","IMG")) ? ''
: "</{$ret->tag}>{$suffix}" ;
-
+ $close = in_array(strtoupper($tag),array("INPUT","IMG")) ? ''
: "</{$ret->tag}>";
+ $close .= $suffix ;
+
return "{$prefix}<{$ret->tag}".$ret->attributesToHTML() .
'>'.$ret->childrenToHTML() .$close;