aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_privmsgs.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_privmsgs.php')
-rw-r--r--phpBB/includes/functions_privmsgs.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php
index 9e055a319f..99ad2ad791 100644
--- a/phpBB/includes/functions_privmsgs.php
+++ b/phpBB/includes/functions_privmsgs.php
@@ -1855,6 +1855,19 @@ function submit_pm($mode, $subject, &$data, $put_in_outbox = true)
*/
function pm_notification($mode, $author, $recipients, $subject, $message, $msg_id)
{
+ global $phpbb_container;
+
+ $phpbb_notifications = $phpbb_container->get('notifications');
+
+ $phpbb_notifications->add_notifications('pm', array(
+ 'author_id' => $author,
+ 'recipients' => $recipients,
+ 'message_subject' => $subject,
+ 'msg_id' => $msg_id,
+ ));
+
+ return;
+
global $db, $user, $config, $phpbb_root_path, $phpEx, $auth;
$subject = censor_text($subject);