mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 00:37:42 +02:00
[ticket/11103] Work on the pm type and email method
PHPBB3-11103
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user