mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 02:06:32 +02:00
[ticket/11103] Create user loader class, update for DIC
Create a very basic user loader class to handle querying/storing user data in a centralized location. Use DIC collection service for notification types/methods. Cleanup unused dependencies. Fix some other issues. PHPBB3-11103
This commit is contained in:
@@ -82,7 +82,7 @@ class phpbb_notification_method_email extends phpbb_notification_method_base
|
||||
$banned_users = phpbb_get_banned_user_ids($user_ids);
|
||||
|
||||
// Load all the users we need
|
||||
$this->notification_manager->load_users($user_ids);
|
||||
$this->user_loader->load_users($user_ids);
|
||||
|
||||
// Load the messenger
|
||||
if (!class_exists('messenger'))
|
||||
@@ -100,7 +100,7 @@ class phpbb_notification_method_email extends phpbb_notification_method_base
|
||||
continue;
|
||||
}
|
||||
|
||||
$user = $this->notification_manager->get_user($notification->user_id);
|
||||
$user = $this->user_loader->get_user($notification->user_id);
|
||||
|
||||
if ($user['user_type'] == USER_IGNORE || in_array($notification->user_id, $banned_users))
|
||||
{
|
||||
|
Reference in New Issue
Block a user