From c55ebd35ff05ae6078811ad45fa0b860e06fd432 Mon Sep 17 00:00:00 2001 From: rMalie Date: Wed, 9 May 2012 15:38:36 +0000 Subject: [PATCH] // Fix FileLogger in installer git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15124 b9a71923-0436-4b27-9f14-aed3839534dd --- install-dev/models/install.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install-dev/models/install.php b/install-dev/models/install.php index 0ca709a4c..777f43959 100644 --- a/install-dev/models/install.php +++ b/install-dev/models/install.php @@ -39,7 +39,8 @@ class InstallModelInstall extends InstallAbstractModel parent::__construct(); $this->logger = new FileLogger(); - $this->logger->setFilename(_PS_ROOT_DIR_.'/log/'.@date('Ymd').'_installation.log'); + if (is_writable(_PS_ROOT_DIR_.'/log/')) + $this->logger->setFilename(_PS_ROOT_DIR_.'/log/'.@date('Ymd').'_installation.log'); } public function setError($errors)