aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-10-01 15:15:14 -0700
committerredmatrix <mike@macgirvin.com>2016-10-01 15:15:14 -0700
commit883828c6cc42df5f835575725c8bfffcc0440c77 (patch)
treef599cd84740a73b40d81515d41ded461a86a11de
parentfa94644bcfd5bb3ef9c4149d6503846a09975297 (diff)
downloadvolse-hubzilla-883828c6cc42df5f835575725c8bfffcc0440c77.tar.gz
volse-hubzilla-883828c6cc42df5f835575725c8bfffcc0440c77.tar.bz2
volse-hubzilla-883828c6cc42df5f835575725c8bfffcc0440c77.zip
change hook name and return results
-rw-r--r--Zotlabs/Lib/Enotify.php4
-rw-r--r--include/network.php2
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);