fix Smarty 3.1.17 until next release
This commit is contained in:
parent
e7072aaf6e
commit
0ec4723b46
@ -139,7 +139,7 @@
|
||||
$_compile_id = isset($compile_id) ? preg_replace('![^\w\|]+!', '_', $compile_id) : null;
|
||||
$_dir_sep = $smarty->use_sub_dirs ? '/' : '^';
|
||||
$_compile_id_offset = $smarty->use_sub_dirs ? 3 : 0;
|
||||
$_dir = realpath($smarty->getCacheDir());
|
||||
$_dir = realpath($smarty->getCacheDir()) . '/';
|
||||
$_dir_length = strlen($_dir);
|
||||
if (isset($_cache_id)) {
|
||||
$_cache_id_parts = explode('|', $_cache_id);
|
||||
|
@ -182,7 +182,7 @@ class Smarty_Internal_Utility
|
||||
*/
|
||||
public static function clearCompiledTemplate($resource_name, $compile_id, $exp_time, Smarty $smarty)
|
||||
{
|
||||
$_compile_dir = realpath($smarty->getCompileDir());
|
||||
$_compile_dir = realpath($smarty->getCompileDir()) . '/';
|
||||
$_compile_id = isset($compile_id) ? preg_replace('![^\w\|]+!', '_', $compile_id) : null;
|
||||
$_dir_sep = $smarty->use_sub_dirs ? DS : '^';
|
||||
if (isset($resource_name)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user