- fixed bug when using absolute template filepath and caching

This commit is contained in:
Uwe.Tews
2009-05-09 07:04:55 +00:00
parent 0a64988240
commit 8f8111a449
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
05/09/2009
- fixed bug when using absolute template filepath and caching
05/08/2009 05/08/2009
- fixed bug of {nocache} tag in included templates - fixed bug of {nocache} tag in included templates

View File

@@ -169,7 +169,7 @@ class Smarty_Internal_CacheResource_File extends Smarty_Internal_PluginBase {
$_cache_dir .= DIRECTORY_SEPARATOR; $_cache_dir .= DIRECTORY_SEPARATOR;
} }
return $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . $resource_name . $this->smarty->php_ext; return $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($resource_name) . $this->smarty->php_ext;
} }
} }