Mode hook
in $conf->global->MAIN_DISABLE_ALL_MAILS
This commit is contained in:
parent
25842b3295
commit
1277596242
@ -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')
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user