Format code
This commit is contained in:
parent
e24fd6fa37
commit
d409568442
@ -375,19 +375,19 @@ class CMailFile
|
||||
|
||||
if (empty($conf->global->MAIN_DISABLE_ALL_MAILS))
|
||||
{
|
||||
|
||||
dol_include_once('/core/class/hookmanager.class.php');
|
||||
$hookmanager=new HookManager($db);
|
||||
$hookmanager->initHooks(array('maildao'));
|
||||
$reshook=$hookmanager->executeHooks('doactions',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks
|
||||
if (!empty($reshook))
|
||||
{
|
||||
dol_include_once('/core/class/hookmanager.class.php');
|
||||
$hookmanager = new HookManager($db);
|
||||
$hookmanager->initHooks(array(
|
||||
'maildao'
|
||||
));
|
||||
$reshook = $hookmanager->executeHooks('doactions', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
|
||||
if (! empty($reshook))
|
||||
{
|
||||
$this->error = "Error in hook maildao doactions " . $reshook;
|
||||
dol_syslog("CMailFile::sendfile: mail end error=" . $this->error, LOG_ERR);
|
||||
|
||||
$this->error="Error in hook maildao doactions ".$reshook;
|
||||
dol_syslog("CMailFile::sendfile: mail end error=".$this->error, LOG_ERR);
|
||||
|
||||
return $reshook;
|
||||
}
|
||||
return $reshook;
|
||||
}
|
||||
|
||||
// Action according to choosed sending method
|
||||
if ($conf->global->MAIN_MAIL_SENDMODE == 'mail')
|
||||
|
||||
@ -522,7 +522,7 @@ class SMTPs
|
||||
* @param mixed $_strConfigPath path to config file or VOID
|
||||
* @return void
|
||||
*/
|
||||
function setConfig ( $_strConfigPath = null )
|
||||
function setConfig($_strConfigPath = null)
|
||||
{
|
||||
/**
|
||||
* Returns constructed SELECT Object string or boolean upon failure
|
||||
@ -736,7 +736,7 @@ class SMTPs
|
||||
* @param string $_strTransEncode Content-Transfer-Encoding
|
||||
* @return void
|
||||
*/
|
||||
function setTransEncode ( $_strTransEncode )
|
||||
function setTransEncode($_strTransEncode)
|
||||
{
|
||||
if (array_search($_strTransEncode, $this->_smtpsTransEncodeTypes))
|
||||
$this->_smtpsTransEncode = $_strTransEncode;
|
||||
@ -830,7 +830,7 @@ class SMTPs
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
function _buildAddrList( $_type, $_addrList )
|
||||
function _buildAddrList($_type, $_addrList)
|
||||
{
|
||||
// Pull existing list
|
||||
$aryHost = $this->_msgRecipients;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user