1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 16:27:38 +02:00

[ticket/11103] Some fixes for the email method

PHPBB3-11103
This commit is contained in:
Nathan Guse
2012-09-08 16:12:20 -05:00
parent 1e53f7df9d
commit 86b801df73
4 changed files with 20 additions and 26 deletions

View File

@@ -29,7 +29,7 @@ class phpbb_notifications_method_email extends phpbb_notifications_method_base
return true;
}
public function notify()
public function notify($notification)
{
// email the user
}
@@ -70,7 +70,7 @@ class phpbb_notifications_method_email extends phpbb_notifications_method_base
{
$notification->users($users);
$user = $notification->get_user();
$user = $notification->get_user($notification->user_id);
$messenger->template('privmsg_notify', $user['user_lang']);
@@ -82,10 +82,10 @@ class phpbb_notifications_method_email extends phpbb_notifications_method_base
'USERNAME' => htmlspecialchars_decode($user['username']),
'U_INBOX' => $board_url . "/ucp.{$this->php_ext}?i=pm&folder=inbox",
'U_VIEW_MESSAGE' => $board_url . "/ucp.{$this->php_ext}?i=pm&mode=view&p={$notification->get_item_id()}",
'U_VIEW_MESSAGE' => $board_url . "/ucp.{$this->php_ext}?i=pm&mode=view&p={$notification->item_id}",
));
$messenger->send($addr['method']);
$messenger->send('email');
}
// Save the queue in the messenger class (has to be called or these emails could be lost?)