mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-29 10:13:25 +02:00
- added $error_muting to suppress error messages even for badly implemented error_handlers
- reverted r4301
This commit is contained in:
@@ -61,7 +61,9 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource {
|
||||
$cached->lock_id = $_lock_dir.sha1($_cache_id.$_compile_id.$_template->source->uid).'.lock';
|
||||
}
|
||||
$cached->filepath = $_cache_dir . $_cache_id . $_compile_id . $_filepath . '.' . basename($_source_file_path) . '.php';
|
||||
Smarty::muteExpectedErrors();
|
||||
$cached->timestamp = @filemtime($cached->filepath);
|
||||
Smarty::unmuteExpectedErrors();
|
||||
$cached->exists = !!$cached->timestamp;
|
||||
}
|
||||
|
||||
@@ -73,7 +75,9 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource {
|
||||
*/
|
||||
public function populateTimestamp(Smarty_Template_Cached $cached)
|
||||
{
|
||||
Smarty::muteExpectedErrors();
|
||||
$cached->timestamp = @filemtime($cached->filepath);
|
||||
Smarty::unmuteExpectedErrors();
|
||||
$cached->exists = !!$cached->timestamp;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user