- fixed {foreachelse}, {forelse}, {sectionelse} compiled code at nocache variables

This commit is contained in:
Uwe.Tews
2009-11-11 16:15:47 +00:00
parent d35746dd26
commit ba6ba0cf8d
4 changed files with 9 additions and 6 deletions

View File

@@ -1,3 +1,6 @@
11/11/2009
- fixed {foreachelse}, {forelse}, {sectionelse} compiled code at nocache variables
11/10/2009
- fixed preg_qoute on delimiters

View File

@@ -71,8 +71,8 @@ class Smarty_Internal_Compile_Forelse extends Smarty_Internal_CompileBase {
// check and get attributes
$_attr = $this->_get_attributes($args);
list($_open_tag, $this->compiler->nocache) = $this->_close_tag(array('for'));
$this->_open_tag('forelse',array('forelse', $this->compiler->nocache));
list($_open_tag, $nocache) = $this->_close_tag(array('for'));
$this->_open_tag('forelse',array('forelse', $nocache));
return "<?php }} else { ?>";
}
}

View File

@@ -151,8 +151,8 @@ class Smarty_Internal_Compile_Foreachelse extends Smarty_Internal_CompileBase {
// check and get attributes
$_attr = $this->_get_attributes($args);
list($_open_tag, $this->compiler->nocache) = $this->_close_tag(array('foreach'));
$this->_open_tag('foreachelse',array('foreachelse', $this->compiler->nocache));
list($_open_tag, $nocache) = $this->_close_tag(array('foreach'));
$this->_open_tag('foreachelse',array('foreachelse', $nocache));
return "<?php }} else { ?>";
}

View File

@@ -128,8 +128,8 @@ class Smarty_Internal_Compile_Sectionelse extends Smarty_Internal_CompileBase {
// check and get attributes
$_attr = $this->_get_attributes($args);
list($_open_tag, $this->compiler->nocache) = $this->_close_tag(array('section'));
$this->_open_tag('sectionelse',array('sectionelse', $this->compiler->nocache));
list($_open_tag, $nocache) = $this->_close_tag(array('section'));
$this->_open_tag('sectionelse',array('sectionelse', $nocache));
return "<?php endfor; else: ?>";
}