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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14880 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-04-25 15:25:04 +00:00
parent 575f5a2e80
commit 40ece86d13
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()