aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-29 22:28:23 -0700
committerredmatrix <mike@macgirvin.com>2016-09-29 22:28:23 -0700
commite48323775d7db4dce5d74a6b4fa23bf7d45326c6 (patch)
tree87fc2027955b8384472f177ac92c1f8f5207b250
parent0f10fc8458ba3722bf7ce84f87bb523baa95dcd7 (diff)
downloadvolse-hubzilla-e48323775d7db4dce5d74a6b4fa23bf7d45326c6.tar.gz
volse-hubzilla-e48323775d7db4dce5d74a6b4fa23bf7d45326c6.tar.bz2
volse-hubzilla-e48323775d7db4dce5d74a6b4fa23bf7d45326c6.zip
add another hook
-rw-r--r--Zotlabs/Lib/Enotify.php11
-rw-r--r--include/html2bbcode.php2
2 files changed, 12 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php
index 5a426a8e4..87a51b3a4 100644
--- a/Zotlabs/Lib/Enotify.php
+++ b/Zotlabs/Lib/Enotify.php
@@ -615,6 +615,16 @@ class Enotify {
*/
static public function send($params) {
+ $params['sent'] = false;
+ $params['result'] = false;
+
+ call_hooks('enotify_send', $params);
+
+ if($params['sent']) {
+ logger("notification: enotify::send returns " . $params['sent'], LOGGER_DEBUG);
+ return;
+ }
+
$fromName = email_header_encode(html_entity_decode($params['fromName'],ENT_QUOTES,'UTF-8'),'UTF-8');
$messageSubject = email_header_encode(html_entity_decode($params['messageSubject'],ENT_QUOTES,'UTF-8'),'UTF-8');
@@ -655,6 +665,7 @@ class Enotify {
$messageHeader // message headers
);
logger("notification: enotify::send returns " . $res, LOGGER_DEBUG);
+ return $res;
}
static public function format($item) {
diff --git a/include/html2bbcode.php b/include/html2bbcode.php
index 9ffc85a82..29880a627 100644
--- a/include/html2bbcode.php
+++ b/include/html2bbcode.php
@@ -2,7 +2,7 @@
/*
html2bbcode.php
Converter for HTML to BBCode
-Made by: ike@piratenpartei.de
+Made by: Mike@piratenpartei.de
Originally made for the syncom project: http://wiki.piratenpartei.de/Syncom
https://github.com/annando/Syncom
*/