From 883828c6cc42df5f835575725c8bfffcc0440c77 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sat, 1 Oct 2016 15:15:14 -0700 Subject: change hook name and return results --- Zotlabs/Lib/Enotify.php | 4 ++-- include/network.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php index c25834a1f..d6fe73717 100644 --- a/Zotlabs/Lib/Enotify.php +++ b/Zotlabs/Lib/Enotify.php @@ -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; } diff --git a/include/network.php b/include/network.php index 15157fdf0..7851f8976 100644 --- a/include/network.php +++ b/include/network.php @@ -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); -- cgit v1.2.3