mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
- bugfix error muting was not implemented for cache locking
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
- bugfix a relative {include} in child template blocks failed
|
||||
- bugfix direct setting of $template_dir, $config_dir, $plugins_dir in __construct() of an
|
||||
extended Smarty class created problems
|
||||
- bugfix error muting was not implemented for cache locking
|
||||
|
||||
===== Smarty 3.1.1 =====
|
||||
22.09.2011
|
||||
|
@@ -227,7 +227,9 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource {
|
||||
} else {
|
||||
clearstatcache();
|
||||
}
|
||||
Smarty::muteExpectedErrors();
|
||||
$t = @filemtime($cached->lock_id);
|
||||
Smarty::unmuteExpectedErrors();
|
||||
return $t && (time() - $t < $smarty->locking_timeout);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user