mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-04 19:54:14 +02:00
- improvement on performance when using error handler and multiple template folders (issue 152)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user