[*] Installer: you can now choose to send an email to the administrator after installation with php-cli

This commit is contained in:
Rémi Gaillard
2013-06-04 14:21:18 +02:00
parent 4c5b060e92
commit 05767a213e
2 changed files with 10 additions and 5 deletions

View File

@@ -133,6 +133,11 @@ class Datas
'default' => 1,
'help' => 'get news from PrestaShop',
),
'send_email' => array(
'name' => 'send_email',
'default' => 1,
'help' => 'send an email to the administrator after installation',
),
);
protected $datas = array();
@@ -200,4 +205,4 @@ class Datas
return count($errors) ? $errors : true;
}
}
}

View File

@@ -110,8 +110,9 @@ class InstallControllerConsoleProcess extends InstallControllerConsole
$this->printErrors();
if (!$this->processInstallTheme())
$this->printErrors();
if (!$this->processSendEmail())
$this->printErrors();
if ($this->datas->send_email)
if (!$this->processSendEmail())
$this->printErrors();
if ($this->datas->newsletter)
{
@@ -287,5 +288,4 @@ class InstallControllerConsoleProcess extends InstallControllerConsole
{
return $this->model_install->installModulesAddons();
}
}
}