mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 19:24:01 +02:00
[ticket/11103] Make $phpbb_notifications a global and use it everywhere
Do not use phpbb_container everywhere (makes testing difficult) PHPBB3-11103
This commit is contained in:
@@ -21,15 +21,10 @@ class ucp_notifications
|
||||
|
||||
public function main($id, $mode)
|
||||
{
|
||||
global $phpbb_container;
|
||||
global $template, $user, $request, $phpbb_notifications;
|
||||
|
||||
add_form_key('ucp_notification_options');
|
||||
|
||||
$phpbb_notifications = $phpbb_container->get('notifications');
|
||||
$template = $phpbb_container->get('template');
|
||||
$user = $phpbb_container->get('user');
|
||||
$request = $phpbb_container->get('request');
|
||||
|
||||
$subscriptions = $phpbb_notifications->get_subscriptions(false, true);
|
||||
|
||||
// Add/remove subscriptions
|
||||
|
Reference in New Issue
Block a user