From 953f6f5a143cc5408b78a41ec62836689e4de74b Mon Sep 17 00:00:00 2001 From: "Uwe.Tews@googlemail.com" Date: Tue, 1 Oct 2013 18:56:49 +0000 Subject: [PATCH] - improvement on performance when using error handler and multiple template folders (issue 152) --- change_log.txt | 1 + libs/sysplugins/smarty_resource.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index 2870aec9..69f8ce01 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,6 +1,7 @@ ===== trunk ===== 01.10.2013 - use current delimiters in compiler error messages (issue 157) + - improvement on performance when using error handler and multiple template folders (issue 152) 17.09.2013 - improvement added patch for additional SmartyCompilerException properties for better access to scource information (forum topic 24559) diff --git a/libs/sysplugins/smarty_resource.php b/libs/sysplugins/smarty_resource.php index 3fc072c6..0cb4ce0b 100644 --- a/libs/sysplugins/smarty_resource.php +++ b/libs/sysplugins/smarty_resource.php @@ -353,7 +353,7 @@ abstract class Smarty_Resource */ protected function fileExists(Smarty_Template_Source $source, $file) { - $source->timestamp = @filemtime($file); + $source->timestamp = is_file($file) ? @filemtime($file) : false; return $source->exists = !!$source->timestamp;