mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- improvement on performance when using error handler and multiple template folders (issue 152)
This commit is contained in:
@@ -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)
|
||||
|
@@ -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