From 8e56fcc651721a1578b48bd820d6a19b30e8c114 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Thu, 5 Dec 2013 13:01:43 +0100 Subject: [PATCH] Fixed exception when log file could not be renamed --- core/lib/Thelia/Log/Destination/TlogDestinationFile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/lib/Thelia/Log/Destination/TlogDestinationFile.php b/core/lib/Thelia/Log/Destination/TlogDestinationFile.php index 5d9089ebe..80aa3ec25 100755 --- a/core/lib/Thelia/Log/Destination/TlogDestinationFile.php +++ b/core/lib/Thelia/Log/Destination/TlogDestinationFile.php @@ -78,10 +78,10 @@ class TlogDestinationFile extends AbstractTlogDestination } while (file_exists($file_path_bk)); - rename($file_path, $file_path_bk); + @rename($file_path, $file_path_bk); - touch($file_path); - chmod($file_path, 0666); + @touch($file_path); + @chmod($file_path, 0666); } $this->fh = fopen($file_path, $mode);