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