aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/notification/method/email.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-10-04 14:27:43 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-10-04 14:27:43 -0500
commitcea94d89848a806f449610ddb2a7df7b7eec1328 (patch)
tree9d246a59cafecef6b7e8e7c62b9d6c2d2d727651 /phpBB/includes/notification/method/email.php
parent64820546d758b34720888311d0abffcf95609436 (diff)
downloadforums-cea94d89848a806f449610ddb2a7df7b7eec1328.tar
forums-cea94d89848a806f449610ddb2a7df7b7eec1328.tar.gz
forums-cea94d89848a806f449610ddb2a7df7b7eec1328.tar.bz2
forums-cea94d89848a806f449610ddb2a7df7b7eec1328.tar.xz
forums-cea94d89848a806f449610ddb2a7df7b7eec1328.zip
[ticket/11103] Use dependency injection instead of phpbb_container
PHPBB3-11103
Diffstat (limited to 'phpBB/includes/notification/method/email.php')
-rw-r--r--phpBB/includes/notification/method/email.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/notification/method/email.php b/phpBB/includes/notification/method/email.php
index 1b6b44d137..c2e272aca1 100644
--- a/phpBB/includes/notification/method/email.php
+++ b/phpBB/includes/notification/method/email.php
@@ -57,12 +57,12 @@ class phpbb_notification_method_email extends phpbb_notification_method_base
// We do not send emails to banned users
if (!function_exists('phpbb_get_banned_user_ids'))
{
- include($this->phpbb_container->getParameter('core.root_path') . 'includes/functions_user.' . $this->phpbb_container->getParameter('core.php_ext'));
+ include($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext);
}
$banned_users = phpbb_get_banned_user_ids($user_ids);
// Load all the users we need
- $this->service->load_users($user_ids);
+ $this->notification_manager->load_users($user_ids);
// Load the messenger
if (!class_exists('messenger'))
@@ -75,7 +75,7 @@ class phpbb_notification_method_email extends phpbb_notification_method_base
// Time to go through the queue and send emails
foreach ($this->queue as $notification)
{
- $user = $this->service->get_user($notification->user_id);
+ $user = $this->notification_manager->get_user($notification->user_id);
if ($user['user_type'] == USER_IGNORE || in_array($notification->user_id, $banned_users))
{