From 38af2463dfc6b6de341e01a0c07fc5406116e6fb Mon Sep 17 00:00:00 2001 From: rodneyrehm Date: Thu, 20 Oct 2011 10:55:11 +0000 Subject: [PATCH] - @silenced unlink() in Smarty_Internal_Write_File since debuggers go haywire without it. --- change_log.txt | 3 +++ libs/sysplugins/smarty_internal_write_file.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index f0a28832..ce024609 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,7 @@ ===== trunk ===== +20.10.2011 +- @silenced unlink() in Smarty_Internal_Write_File since debuggers go haywire without it. + 19.10.2011 - revert PHP4 constructor message - fixed PHP4 constructor message diff --git a/libs/sysplugins/smarty_internal_write_file.php b/libs/sysplugins/smarty_internal_write_file.php index aae600ee..743503b0 100644 --- a/libs/sysplugins/smarty_internal_write_file.php +++ b/libs/sysplugins/smarty_internal_write_file.php @@ -46,7 +46,7 @@ class Smarty_Internal_Write_File { } // remove original file - unlink($_filepath); + @unlink($_filepath); // rename tmp file $success = rename($_tmp_file, $_filepath);