diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/notification.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engine/lib/notification.php b/engine/lib/notification.php index 8fcd9e9a3..15448f720 100644 --- a/engine/lib/notification.php +++ b/engine/lib/notification.php @@ -98,4 +98,16 @@ return mail($to, $subject, $message, $headers); } + + /** + * Correctly initialise notifications and register the email handler. + * + */ + function notification_init() + { + register_notification_handler("email", "email_notify_handler"); + } + + // Register a startup event + register_event_handler('init','system','notification_init',0); ?>
\ No newline at end of file |