From f3c58dfa8da7b606926eccf489ff16d259fc0f40 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Wed, 29 Apr 2009 19:31:33 +0000 Subject: [PATCH] - allow that cache_dir can end without directory separator --- libs/sysplugins/internal.cacheresource_file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sysplugins/internal.cacheresource_file.php b/libs/sysplugins/internal.cacheresource_file.php index fccae3e1..952dda9a 100644 --- a/libs/sysplugins/internal.cacheresource_file.php +++ b/libs/sysplugins/internal.cacheresource_file.php @@ -164,7 +164,7 @@ class Smarty_Internal_CacheResource_File extends Smarty_Internal_PluginBase { } else { $_compile_id = ''; } - $_cache_dir = $_template->smarty->cache_dir; + $_cache_dir = $this->smarty->cache_dir; if (substr($_cache_dir, -1) != DIRECTORY_SEPARATOR) { $_cache_dir .= DIRECTORY_SEPARATOR; }