aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_notifications.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-10-04 14:47:13 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-10-04 14:47:13 -0500
commitb9bc65eed88bbd2dff12102909903cbf4dc9b368 (patch)
treef8ede0fe1a0d295fd764c34f56990fe08378e0bc /phpBB/includes/ucp/ucp_notifications.php
parent07fb66ac1090dfe92431ed749b520115595f7927 (diff)
downloadforums-b9bc65eed88bbd2dff12102909903cbf4dc9b368.tar
forums-b9bc65eed88bbd2dff12102909903cbf4dc9b368.tar.gz
forums-b9bc65eed88bbd2dff12102909903cbf4dc9b368.tar.bz2
forums-b9bc65eed88bbd2dff12102909903cbf4dc9b368.tar.xz
forums-b9bc65eed88bbd2dff12102909903cbf4dc9b368.zip
[ticket/11103] Make $phpbb_notifications a global and use it everywhere
Do not use phpbb_container everywhere (makes testing difficult) PHPBB3-11103
Diffstat (limited to 'phpBB/includes/ucp/ucp_notifications.php')
-rw-r--r--phpBB/includes/ucp/ucp_notifications.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/phpBB/includes/ucp/ucp_notifications.php b/phpBB/includes/ucp/ucp_notifications.php
index d248099b06..9ea44f49bf 100644
--- a/phpBB/includes/ucp/ucp_notifications.php
+++ b/phpBB/includes/ucp/ucp_notifications.php
@@ -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