[*] Installer: you can now choose to send an email to the administrator after installation with php-cli
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user