// Fix FileLogger in installer

This commit is contained in:
rMalie
2012-05-09 15:38:36 +00:00
parent 34a9b84e0a
commit b90814da24
+2 -1
View File
@@ -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)