From eea360e87d706bc6aa3b8fa6549a6ad9a5dcc4af Mon Sep 17 00:00:00 2001 From: rodneyrehm Date: Sun, 16 Oct 2011 09:53:14 +0000 Subject: [PATCH] - bugfix testInstall() did not propery check cache_dir and compile_dir --- change_log.txt | 3 +++ libs/sysplugins/smarty_internal_utility.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/change_log.txt b/change_log.txt index 6308219a..a16452f6 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,7 @@ ===== trunk ===== +16.10.2011 +- bugfix testInstall() did not propery check cache_dir and compile_dir + 15.10.2011 - bugfix Smarty_Resource and Smarty_CacheResource runtime caching (Forum Post 75264) diff --git a/libs/sysplugins/smarty_internal_utility.php b/libs/sysplugins/smarty_internal_utility.php index 01d2c5c5..2c184cd3 100644 --- a/libs/sysplugins/smarty_internal_utility.php +++ b/libs/sysplugins/smarty_internal_utility.php @@ -359,7 +359,7 @@ class Smarty_Internal_Utility { // test if registered compile_dir is accessible $__compile_dir = $smarty->getCompileDir(); $_compile_dir = realpath($__compile_dir); - if (!$__compile_dir) { + if (!$_compile_dir) { $status = false; $message = "FAILED: {$__compile_dir} does not exist"; if ($errors === null) { @@ -488,7 +488,7 @@ class Smarty_Internal_Utility { // test if all registered cache_dir is accessible $__cache_dir = $smarty->getCacheDir(); $_cache_dir = realpath($__cache_dir); - if (!$__cache_dir) { + if (!$_cache_dir) { $status = false; $message = "FAILED: {$__cache_dir} does not exist"; if ($errors === null) {