From 36da15cee85ffdfdc66015dc37cd054633d1ba4d Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Sun, 27 Dec 2009 19:12:51 +0000 Subject: [PATCH] - update of getCachedTimestamp() --- change_log.txt | 1 + libs/sysplugins/smarty_internal_cacheresource_file.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/change_log.txt b/change_log.txt index c0212b3c..5e47dab4 100644 --- a/change_log.txt +++ b/change_log.txt @@ -9,6 +9,7 @@ - Renamed a couple of internal classes - code cleanup for merging compiled templates - couple of runtime optimizations (still not all done) +- update of getCachedTimestamp() 12/19/2009 - bugfix on comment lines in config files diff --git a/libs/sysplugins/smarty_internal_cacheresource_file.php b/libs/sysplugins/smarty_internal_cacheresource_file.php index d4d9baf7..a76cb50f 100644 --- a/libs/sysplugins/smarty_internal_cacheresource_file.php +++ b/libs/sysplugins/smarty_internal_cacheresource_file.php @@ -38,8 +38,8 @@ class Smarty_Internal_CacheResource_File { */ public function getCachedTimestamp($template) { - return @filemtime($template->getCachedFilepath()); - // return ($template->getCachedFilepath() && file_exists($template->getCachedFilepath())) ? filemtime($template->getCachedFilepath()) : false ; + //return @filemtime($template->getCachedFilepath()); + return ($template->getCachedFilepath() && file_exists($template->getCachedFilepath())) ? filemtime($template->getCachedFilepath()) : false ; } /**