aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_privmsgs.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-09-08 16:12:20 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-09-08 16:12:20 -0500
commit86b801df7304d43f117bea762710149c25385260 (patch)
treeb2b7be759986c33ea420b49deae901a712faff7d /phpBB/includes/functions_privmsgs.php
parent1e53f7df9d430422e7bb827f3449ef744fc1ed6f (diff)
downloadforums-86b801df7304d43f117bea762710149c25385260.tar
forums-86b801df7304d43f117bea762710149c25385260.tar.gz
forums-86b801df7304d43f117bea762710149c25385260.tar.bz2
forums-86b801df7304d43f117bea762710149c25385260.tar.xz
forums-86b801df7304d43f117bea762710149c25385260.zip
[ticket/11103] Some fixes for the email method
PHPBB3-11103
Diffstat (limited to 'phpBB/includes/functions_privmsgs.php')
-rw-r--r--phpBB/includes/functions_privmsgs.php25
1 files changed, 11 insertions, 14 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php
index 99ad2ad791..8002765ee2 100644
--- a/phpBB/includes/functions_privmsgs.php
+++ b/phpBB/includes/functions_privmsgs.php
@@ -1543,6 +1543,7 @@ function get_folder_status($folder_id, $folder)
function submit_pm($mode, $subject, &$data, $put_in_outbox = true)
{
global $db, $auth, $config, $phpEx, $template, $user, $phpbb_root_path;
+ global $phpbb_container;
// We do not handle erasing pms here
if ($mode == 'delete')
@@ -1844,7 +1845,16 @@ function submit_pm($mode, $subject, &$data, $put_in_outbox = true)
// Send Notifications
if ($mode != 'edit')
{
- pm_notification($mode, $data['from_username'], $recipients, $subject, $data['message'], $data['msg_id']);
+ $phpbb_notifications = $phpbb_container->get('notifications');
+
+ $phpbb_notifications->add_notifications('pm', array(
+ 'author_id' => $data['from_user_id'],
+ 'recipients' => $recipients,
+ 'message_subject' => $subject,
+ 'msg_id' => $data['msg_id'],
+ ));
+
+ //pm_notification($mode, $data['from_username'], $recipients, $subject, $data['message'], $data['msg_id']);
}
return $data['msg_id'];
@@ -1855,19 +1865,6 @@ 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);