- suppress warnings on unlink caused by race conditions

- correct line number on unknown tag error message
This commit is contained in:
Uwe.Tews
2009-11-23 22:31:22 +00:00
parent 963b13b0af
commit 4925a98949
7 changed files with 37 additions and 21 deletions
@@ -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