aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_privmsgs.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-09-08 15:48:46 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-09-08 15:48:46 -0500
commit7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0 (patch)
tree47313d9dbe6adc84d67c08d06a510a4c6fb05b43 /phpBB/includes/functions_privmsgs.php
parent7b0b6fc63c2593cafaa84cc38a9b3029af1ed369 (diff)
downloadforums-7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0.tar
forums-7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0.tar.gz
forums-7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0.tar.bz2
forums-7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0.tar.xz
forums-7fee0cfdf60c9aeebcd498d2f41696bb7fed2dd0.zip
[ticket/11103] Work on the pm type and email method
PHPBB3-11103
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);