mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
- avoid possible notice on $smarty->cache->clear(...), $smarty->clear_cache(....)
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
09/02/2010
|
||||||
|
- avoid possible notice on $smarty->cache->clear(...), $smarty->clear_cache(....)
|
||||||
|
|
||||||
09/02/2010
|
09/02/2010
|
||||||
- added $smarty->_tag_stack for tracing block tag hierarchy
|
- added $smarty->_tag_stack for tracing block tag hierarchy
|
||||||
|
|
||||||
|
@@ -159,7 +159,7 @@ class Smarty_Internal_CacheResource_File {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// check compile id
|
// check compile id
|
||||||
if (isset($_compile_id) && $_parts[$_parts_count-2 - $_compile_id_offset] != $_compile_id) {
|
if (isset($_compile_id) && (!isset($_parts[$_parts_count-2 - $_compile_id_offset]) || $_parts[$_parts_count-2 - $_compile_id_offset] != $_compile_id)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// check cache id
|
// check cache id
|
||||||
@@ -176,7 +176,7 @@ class Smarty_Internal_CacheResource_File {
|
|||||||
// expired ?
|
// expired ?
|
||||||
if (isset($exp_time) && time() - @filemtime($_file) < $exp_time) {
|
if (isset($exp_time) && time() - @filemtime($_file) < $exp_time) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$_count += @unlink((string) $_file) ? 1 : 0;
|
$_count += @unlink((string) $_file) ? 1 : 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user