mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
fixed handling of {foreachelse} and {sectionelse} that got borked with
the latest commit (v 1.330)
This commit is contained in:
@@ -2205,10 +2205,12 @@ class Smarty_Compiler extends Smarty {
|
|||||||
return $this->_pop_tag($close_tag);
|
return $this->_pop_tag($close_tag);
|
||||||
}
|
}
|
||||||
if ($close_tag == 'section' && $_open_tag == 'sectionelse') {
|
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') {
|
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') {
|
if ($_open_tag == 'else' || $_open_tag == 'elseif') {
|
||||||
$_open_tag = 'if';
|
$_open_tag = 'if';
|
||||||
|
Reference in New Issue
Block a user