1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/11103] Replace $email_template with get_email_template()

PHPBB3-11103
This commit is contained in:
Nathan Guse
2012-10-20 18:55:13 -05:00
parent a93067eb41
commit 0ac9079d1c
18 changed files with 163 additions and 99 deletions

View File

@@ -78,6 +78,11 @@ class phpbb_notification_method_email extends phpbb_notification_method_base
// Time to go through the queue and send emails
foreach ($this->queue as $notification)
{
if ($notification->get_email_template() === false)
{
continue;
}
$user = $this->notification_manager->get_user($notification->user_id);
if ($user['user_type'] == USER_IGNORE || in_array($notification->user_id, $banned_users))
@@ -85,7 +90,7 @@ class phpbb_notification_method_email extends phpbb_notification_method_base
continue;
}
$messenger->template($notification->email_template, $user['user_lang']);
$messenger->template($notification->get_email_template(), $user['user_lang']);
$messenger->to($user['user_email'], $user['username']);