mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 20:04:27 +02:00
- fixed {foreachelse}, {forelse}, {sectionelse} compiled code at nocache variables
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
11/11/2009
|
||||||
|
- fixed {foreachelse}, {forelse}, {sectionelse} compiled code at nocache variables
|
||||||
|
|
||||||
11/10/2009
|
11/10/2009
|
||||||
- fixed preg_qoute on delimiters
|
- fixed preg_qoute on delimiters
|
||||||
|
|
||||||
|
@@ -71,8 +71,8 @@ class Smarty_Internal_Compile_Forelse extends Smarty_Internal_CompileBase {
|
|||||||
// check and get attributes
|
// check and get attributes
|
||||||
$_attr = $this->_get_attributes($args);
|
$_attr = $this->_get_attributes($args);
|
||||||
|
|
||||||
list($_open_tag, $this->compiler->nocache) = $this->_close_tag(array('for'));
|
list($_open_tag, $nocache) = $this->_close_tag(array('for'));
|
||||||
$this->_open_tag('forelse',array('forelse', $this->compiler->nocache));
|
$this->_open_tag('forelse',array('forelse', $nocache));
|
||||||
return "<?php }} else { ?>";
|
return "<?php }} else { ?>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -151,8 +151,8 @@ class Smarty_Internal_Compile_Foreachelse extends Smarty_Internal_CompileBase {
|
|||||||
// check and get attributes
|
// check and get attributes
|
||||||
$_attr = $this->_get_attributes($args);
|
$_attr = $this->_get_attributes($args);
|
||||||
|
|
||||||
list($_open_tag, $this->compiler->nocache) = $this->_close_tag(array('foreach'));
|
list($_open_tag, $nocache) = $this->_close_tag(array('foreach'));
|
||||||
$this->_open_tag('foreachelse',array('foreachelse', $this->compiler->nocache));
|
$this->_open_tag('foreachelse',array('foreachelse', $nocache));
|
||||||
|
|
||||||
return "<?php }} else { ?>";
|
return "<?php }} else { ?>";
|
||||||
}
|
}
|
||||||
|
@@ -128,8 +128,8 @@ class Smarty_Internal_Compile_Sectionelse extends Smarty_Internal_CompileBase {
|
|||||||
// check and get attributes
|
// check and get attributes
|
||||||
$_attr = $this->_get_attributes($args);
|
$_attr = $this->_get_attributes($args);
|
||||||
|
|
||||||
list($_open_tag, $this->compiler->nocache) = $this->_close_tag(array('section'));
|
list($_open_tag, $nocache) = $this->_close_tag(array('section'));
|
||||||
$this->_open_tag('sectionelse',array('sectionelse', $this->compiler->nocache));
|
$this->_open_tag('sectionelse',array('sectionelse', $nocache));
|
||||||
|
|
||||||
return "<?php endfor; else: ?>";
|
return "<?php endfor; else: ?>";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user