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

3
NEWS
View File

@@ -1,3 +1,6 @@
- swapped compile_id and cache_id in read_cache_file and write_cache_file
(messju)
- reverted patch for cache-file-handling (messju)
- made html_radios and html_checkboxes accept "selected" instead
of "checked" optionally. (messju)
- made compile_id ignored in clear_cache, made order of

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