cvs: smarty /libs Smarty_Compiler.class.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1092403948@cvsserver> |
messju Fri Aug 13 09:32:28 2004 EDT
Modified files:
/smarty/libs Smarty_Compiler.class.php
Log:
fixed handling of {foreachelse} and {sectionelse} that got borked with
the latest commit (v 1.330)
http://cvs.php.net/diff.php/smarty/libs/Smarty_Compiler.class.php?r1=1.330&r2=1.331&ty=u
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.330 smarty/libs/Smarty_Compiler.class.php:1.331
--- smarty/libs/Smarty_Compiler.class.php:1.330 Thu Aug 12 17:07:24 2004
+++ smarty/libs/Smarty_Compiler.class.php Fri Aug 13 09:32:27 2004
@@ -26,7 +26,7 @@
* @package Smarty
*/
-/* $Id: Smarty_Compiler.class.php,v 1.330 2004/08/12 21:07:24 messju Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.331 2004/08/13 13:32:27 messju Exp $ */
/**
* Template compiling class
@@ -2205,10 +2205,12 @@
return $this->_pop_tag($close_tag);
}
if ($close_tag == 'section' && $_open_tag == 'sectionelse') {
- return $this->_pop_tag($close_tag);
+ $this->_pop_tag($close_tag);
+ return $_open_tag;
}
if ($close_tag == 'foreach' && $_open_tag == 'foreachelse') {
- return $this->_pop_tag($close_tag);
+ $this->_pop_tag($close_tag);
+ return $_open_tag;
}
if ($_open_tag == 'else' || $_open_tag == 'elseif') {
$_open_tag = 'if';
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php