// FileLogger is now called after configuration in installer in order to prevent permissions problems on log/ folder

This commit is contained in:
rMalie
2012-04-25 15:25:04 +00:00
parent 0dbb55d4e1
commit 629d491f34
2 changed files with 25 additions and 13 deletions
+1 -13
View File
@@ -32,11 +32,6 @@ abstract class InstallAbstractModel
*/
public $language;
/**
* @var FileLogger
*/
public $logger;
/**
* @var array List of errors
*/
@@ -45,9 +40,6 @@ abstract class InstallAbstractModel
public function __construct()
{
$this->language = InstallLanguages::getInstance();
$this->logger = new FileLogger();
$this->logger->setFilename(_PS_ROOT_DIR_.'/log/'.@date('Ymd').'_installation.log');
}
public function setError($errors)
@@ -55,11 +47,7 @@ abstract class InstallAbstractModel
if (!is_array($errors))
$errors = array($errors);
foreach ($errors as $error)
{
$this->errors[] = $error;
$this->logger->logError($error);
}
$this->errors[] = $errors;
}
public function getErrors()