- 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
+1 -1
View File
@@ -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;