mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
- allow that cache_dir can end without directory separator
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user