fixed handling of {foreachelse} and {sectionelse} that got borked with

the latest commit (v 1.330)
This commit is contained in:
messju
2004-08-13 13:32:27 +00:00
parent d201ef80d9
commit 06bb354663

View File

@@ -2205,10 +2205,12 @@ class Smarty_Compiler extends Smarty {
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';