mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
swapped compile_id and cache_id in read_cache_file and write_cache_file
This commit is contained in:
3
NEWS
3
NEWS
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user