swapped compile_id and cache_id in read_cache_file and write_cache_file

This commit is contained in:
messju
2003-03-21 09:07:57 +00:00
parent 4a2b486086
commit b1787d0b23
2 changed files with 5 additions and 2 deletions

View File

@@ -912,7 +912,7 @@ class Smarty
$compile_id = $this->compile_id;
if (isset($cache_id))
$auto_id = (isset($compile_id)) ? $compile_id . '|' . $cache_id : $cache_id;
$auto_id = (isset($compile_id)) ? $cache_id . '|' . $compile_id : $cache_id;
elseif(isset($compile_id))
$auto_id = $compile_id;
else
@@ -2285,7 +2285,7 @@ class Smarty
} else {
// use local cache file
if (isset($cache_id))
$auto_id = (isset($compile_id)) ? $compile_id . '|' . $cache_id : $cache_id;
$auto_id = (isset($compile_id)) ? $cache_id . '|' . $compile_id : $cache_id;
elseif(isset($compile_id))
$auto_id = $compile_id;
else