Fixed compile_id problem.

This commit is contained in:
andrey
2001-12-31 19:53:06 +00:00
parent 0ac9492a7b
commit e51103ebd9
3 changed files with 8 additions and 2 deletions

6
NEWS
View File

@@ -1,8 +1,10 @@
- fixed problem with using assigned vars with {include_php ...} filepath
- fixed a problem with compile_id usage. (Andrei)
- fixed problem with using assigned vars with {include_php ...} filepath.
(Monte)
Version 1.5.2
-------------
- added Smarty object as fifth argument for template resource functions
- added Smarty object as fifth argument for template resource functions.
(Monte)
- fixed a bug with incorrectly combined cache and compile id in
clear_cache(). (Andrei)

View File

@@ -539,6 +539,8 @@ class Smarty
if (!isset($_smarty_compile_id))
$_smarty_compile_id = $this->compile_id;
$this->_compile_id = $_smarty_compile_id;
$this->_inclusion_depth = 0;
if ($this->caching) {

View File

@@ -539,6 +539,8 @@ class Smarty
if (!isset($_smarty_compile_id))
$_smarty_compile_id = $this->compile_id;
$this->_compile_id = $_smarty_compile_id;
$this->_inclusion_depth = 0;
if ($this->caching) {