From 8f8111a4499eabdac96d79dbf7b95f62d8eafc95 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Sat, 9 May 2009 07:04:55 +0000 Subject: [PATCH] - fixed bug when using absolute template filepath and caching --- change_log.txt | 3 +++ libs/sysplugins/internal.cacheresource_file.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index f016dbdc..8492338e 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,6 @@ +05/09/2009 +- fixed bug when using absolute template filepath and caching + 05/08/2009 - fixed bug of {nocache} tag in included templates diff --git a/libs/sysplugins/internal.cacheresource_file.php b/libs/sysplugins/internal.cacheresource_file.php index 952dda9a..e5d0cfc1 100644 --- a/libs/sysplugins/internal.cacheresource_file.php +++ b/libs/sysplugins/internal.cacheresource_file.php @@ -169,7 +169,7 @@ class Smarty_Internal_CacheResource_File extends Smarty_Internal_PluginBase { $_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; } }