[*] 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,
|
'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();
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
@@ -288,4 +289,3 @@ class InstallControllerConsoleProcess extends InstallControllerConsole
|
|||||||
return $this->model_install->installModulesAddons();
|
return $this->model_install->installModulesAddons();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user