Mode hook

in $conf->global->MAIN_DISABLE_ALL_MAILS
This commit is contained in:
Alexis ALGOUD 2015-07-06 00:51:17 +02:00
parent 25842b3295
commit 1277596242

View File

@ -373,6 +373,9 @@ class CMailFile
$res=false; $res=false;
if (empty($conf->global->MAIN_DISABLE_ALL_MAILS))
{
dol_include_once('/core/class/hookmanager.class.php'); dol_include_once('/core/class/hookmanager.class.php');
$hookmanager=new HookManager($db); $hookmanager=new HookManager($db);
$hookmanager->initHooks(array('maildao')); $hookmanager->initHooks(array('maildao'));
@ -386,8 +389,6 @@ class CMailFile
return $reshook; return $reshook;
} }
if (empty($conf->global->MAIN_DISABLE_ALL_MAILS))
{
// Action according to choosed sending method // Action according to choosed sending method
if ($conf->global->MAIN_MAIL_SENDMODE == 'mail') if ($conf->global->MAIN_MAIL_SENDMODE == 'mail')
{ {