- bugfix error muting was not implemented for cache locking

This commit is contained in:
uwe.tews@googlemail.com
2011-09-23 22:27:44 +00:00
parent 50a8f805dd
commit 537285032c
2 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -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);
}