aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/notifications/method/email.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/notifications/method/email.php')
-rw-r--r--phpBB/includes/notifications/method/email.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/phpBB/includes/notifications/method/email.php b/phpBB/includes/notifications/method/email.php
index 0120485cff..b1979296b9 100644
--- a/phpBB/includes/notifications/method/email.php
+++ b/phpBB/includes/notifications/method/email.php
@@ -23,6 +23,10 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_notifications_method_email extends phpbb_notifications_method_base
{
+ /**
+ * Is this method available for the user?
+ * This is checked on the notifications options
+ */
public static function is_available()
{
// Email is always available
@@ -77,12 +81,9 @@ class phpbb_notifications_method_email extends phpbb_notifications_method_base
$messenger->to($user['user_email'], $user['username']);
$messenger->assign_vars(array(
- 'SUBJECT' => htmlspecialchars_decode($notification->get_title()),
- 'AUTHOR_NAME' => '',
- 'USERNAME' => htmlspecialchars_decode($user['username']),
+ 'SUBJECT' => htmlspecialchars_decode($notification->get_title()),
- '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->item_id}",
+ 'U_VIEW_MESSAGE' => $notification->get_full_url(),
));
$messenger->send('email');