add another hook
This commit is contained in:
parent
0f10fc8458
commit
e48323775d
@ -615,6 +615,16 @@ class Enotify {
|
|||||||
*/
|
*/
|
||||||
static public function send($params) {
|
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');
|
$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');
|
$messageSubject = email_header_encode(html_entity_decode($params['messageSubject'],ENT_QUOTES,'UTF-8'),'UTF-8');
|
||||||
|
|
||||||
@ -655,6 +665,7 @@ class Enotify {
|
|||||||
$messageHeader // message headers
|
$messageHeader // message headers
|
||||||
);
|
);
|
||||||
logger("notification: enotify::send returns " . $res, LOGGER_DEBUG);
|
logger("notification: enotify::send returns " . $res, LOGGER_DEBUG);
|
||||||
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function format($item) {
|
static public function format($item) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/*
|
/*
|
||||||
html2bbcode.php
|
html2bbcode.php
|
||||||
Converter for HTML to BBCode
|
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
|
Originally made for the syncom project: http://wiki.piratenpartei.de/Syncom
|
||||||
https://github.com/annando/Syncom
|
https://github.com/annando/Syncom
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user