mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 02:14:26 +02:00
Fixed clear_cache().
This commit is contained in:
6
NEWS
6
NEWS
@@ -1,5 +1,7 @@
|
||||
- fixed bug in smarty_make_timestamp introduced in PHP 4.1.0 (Monte)
|
||||
- fixed bug with cached insert debug timing (Monte)
|
||||
- fixed a bug with incorrectly combined cache and compile id in
|
||||
clear_cache(). (Andrei)
|
||||
- fixed bug in smarty_make_timestamp introduced in PHP 4.1.0. (Monte)
|
||||
- fixed bug with cached insert debug timing. (Monte)
|
||||
- added 'script' attribute to {insert..} which specifies the script that
|
||||
the insert function can be found in. (Andrei)
|
||||
- added default template function handler. (Monte)
|
||||
|
@@ -429,7 +429,7 @@ class Smarty
|
||||
if (!isset($compile_id))
|
||||
$compile_id = $this->compile_id;
|
||||
|
||||
if (isset($compile_id) && isset($cache_id))
|
||||
if (isset($compile_id) || isset($cache_id))
|
||||
$auto_id = $compile_id . $cache_id;
|
||||
else
|
||||
$auto_id = null;
|
||||
|
@@ -429,7 +429,7 @@ class Smarty
|
||||
if (!isset($compile_id))
|
||||
$compile_id = $this->compile_id;
|
||||
|
||||
if (isset($compile_id) && isset($cache_id))
|
||||
if (isset($compile_id) || isset($cache_id))
|
||||
$auto_id = $compile_id . $cache_id;
|
||||
else
|
||||
$auto_id = null;
|
||||
|
Reference in New Issue
Block a user