- improvement on performance when using error handler and multiple template folders (issue 152)

This commit is contained in:
Uwe.Tews@googlemail.com
2013-10-01 18:56:49 +00:00
parent 51ee8c4ad9
commit 953f6f5a14
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
===== trunk ===== ===== trunk =====
01.10.2013 01.10.2013
- use current delimiters in compiler error messages (issue 157) - 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 17.09.2013
- improvement added patch for additional SmartyCompilerException properties for better access to scource information (forum topic 24559) - improvement added patch for additional SmartyCompilerException properties for better access to scource information (forum topic 24559)

View File

@@ -353,7 +353,7 @@ abstract class Smarty_Resource
*/ */
protected function fileExists(Smarty_Template_Source $source, $file) 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; return $source->exists = !!$source->timestamp;