aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.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/index.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/index.php')
-rw-r--r--phpBB/index.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/index.php b/phpBB/index.php
index 38eeb2514e..af0441f5e3 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -31,7 +31,7 @@ if ($ext = $request->variable('ext', ''))
if (!$phpbb_extension_manager->available($ext))
{
send_status_line(404, 'Not Found');
- trigger_error($user->lang('EXTENSION_DOES_NOT_EXIST', $ext));
+ trigger_error($user->lang('EXTENSION_DOES_NOT_EXIST', $ext));
}
else if (!$phpbb_extension_manager->enabled($ext))
{
@@ -60,7 +60,6 @@ if ($ext = $request->variable('ext', ''))
$mark_notifications = request_var('mark_notification', array(0));
if (!empty($mark_notifications))
{
- $phpbb_notifications = $phpbb_container->get('notifications');
$phpbb_notifications->mark_notifications_read_by_id($mark_notifications);
}