[*] 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
+6 -1
View File
@@ -133,6 +133,11 @@ class Datas
'default' => 1, 'default' => 1,
'help' => 'get news from PrestaShop', '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(); protected $datas = array();
@@ -200,4 +205,4 @@ class Datas
return count($errors) ? $errors : true; return count($errors) ? $errors : true;
} }
} }
+4 -4
View File
@@ -110,8 +110,9 @@ class InstallControllerConsoleProcess extends InstallControllerConsole
$this->printErrors(); $this->printErrors();
if (!$this->processInstallTheme()) if (!$this->processInstallTheme())
$this->printErrors(); $this->printErrors();
if (!$this->processSendEmail()) if ($this->datas->send_email)
$this->printErrors(); if (!$this->processSendEmail())
$this->printErrors();
if ($this->datas->newsletter) if ($this->datas->newsletter)
{ {
@@ -287,5 +288,4 @@ class InstallControllerConsoleProcess extends InstallControllerConsole
{ {
return $this->model_install->installModulesAddons(); return $this->model_install->installModulesAddons();
} }
} }