Fix check for compile and cache IDs.

This commit is contained in:
andrey
2001-12-10 14:22:47 +00:00
parent 76f9483b62
commit 80c1085e59
2 changed files with 6 additions and 6 deletions

View File

@@ -123,7 +123,7 @@ class Smarty
'IF_FUNCS' => array('array', 'list', 'IF_FUNCS' => array('array', 'list',
'isset', 'empty', 'isset', 'empty',
'count', 'sizeof', 'count', 'sizeof',
'in_array','is_array'), 'in_array', 'is_array'),
'INCLUDE_ANY' => false, 'INCLUDE_ANY' => false,
'PHP_TAGS' => false, 'PHP_TAGS' => false,
'MODIFIER_FUNCS' => array('count') 'MODIFIER_FUNCS' => array('count')
@@ -1360,7 +1360,7 @@ function _run_insert_handler($args)
return $funcname('write', $this, $results, $tpl_file, $cache_id, $compile_id); return $funcname('write', $this, $results, $tpl_file, $cache_id, $compile_id);
} else { } else {
// use local cache file // use local cache file
if (isset($compile_id) && isset($cache_id)) if (isset($compile_id) || isset($cache_id))
$auto_id = $compile_id . $cache_id; $auto_id = $compile_id . $cache_id;
else else
$auto_id = null; $auto_id = null;
@@ -1391,7 +1391,7 @@ function _run_insert_handler($args)
} else { } else {
// use local file cache // use local file cache
if (isset($compile_id) && isset($cache_id)) if (isset($compile_id) || isset($cache_id))
$auto_id = $compile_id . $cache_id; $auto_id = $compile_id . $cache_id;
else else
$auto_id = null; $auto_id = null;

View File

@@ -123,7 +123,7 @@ class Smarty
'IF_FUNCS' => array('array', 'list', 'IF_FUNCS' => array('array', 'list',
'isset', 'empty', 'isset', 'empty',
'count', 'sizeof', 'count', 'sizeof',
'in_array','is_array'), 'in_array', 'is_array'),
'INCLUDE_ANY' => false, 'INCLUDE_ANY' => false,
'PHP_TAGS' => false, 'PHP_TAGS' => false,
'MODIFIER_FUNCS' => array('count') 'MODIFIER_FUNCS' => array('count')
@@ -1360,7 +1360,7 @@ function _run_insert_handler($args)
return $funcname('write', $this, $results, $tpl_file, $cache_id, $compile_id); return $funcname('write', $this, $results, $tpl_file, $cache_id, $compile_id);
} else { } else {
// use local cache file // use local cache file
if (isset($compile_id) && isset($cache_id)) if (isset($compile_id) || isset($cache_id))
$auto_id = $compile_id . $cache_id; $auto_id = $compile_id . $cache_id;
else else
$auto_id = null; $auto_id = null;
@@ -1391,7 +1391,7 @@ function _run_insert_handler($args)
} else { } else {
// use local file cache // use local file cache
if (isset($compile_id) && isset($cache_id)) if (isset($compile_id) || isset($cache_id))
$auto_id = $compile_id . $cache_id; $auto_id = $compile_id . $cache_id;
else else
$auto_id = null; $auto_id = null;