mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 04:04:10 +02:00
- suppress warnings on unlink caused by race conditions
- correct line number on unknown tag error message
This commit is contained in:
@@ -36,7 +36,7 @@ class Smarty_Internal_Write_File {
|
||||
}
|
||||
// remove original file
|
||||
if (file_exists($_filepath))
|
||||
unlink($_filepath);
|
||||
@unlink($_filepath);
|
||||
// rename tmp file
|
||||
rename($_tmp_file, $_filepath);
|
||||
// set file permissions
|
||||
|
||||
Reference in New Issue
Block a user