change hook name and return results
This commit is contained in:
parent
fa94644bcf
commit
883828c6cc
@ -630,10 +630,10 @@ class Enotify {
|
||||
$params['sent'] = false;
|
||||
$params['result'] = false;
|
||||
|
||||
call_hooks('enotify_send', $params);
|
||||
call_hooks('email_send', $params);
|
||||
|
||||
if($params['sent']) {
|
||||
logger("notification: enotify::send returns " . $params['sent'], LOGGER_DEBUG);
|
||||
logger("notification: enotify::send returns " . $params['result'], LOGGER_DEBUG);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -2263,7 +2263,7 @@ function z_mail($params) {
|
||||
$params['sent'] = false;
|
||||
$params['result'] = false;
|
||||
|
||||
call_hooks('enotify_send', $params);
|
||||
call_hooks('email_send', $params);
|
||||
|
||||
if($params['sent']) {
|
||||
logger('notification: z_mail returns ' . $params['result'], LOGGER_DEBUG);
|
||||
|
Reference in New Issue
Block a user