aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2012-09-20 10:36:11 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2012-09-20 10:36:11 -0500
commit98731b127748af4673fdee92db2e139e84fd4d4b (patch)
tree9c06bcf6c2fd3604a2a338ed633c93e6f1776ef1 /phpBB/index.php
parent[ticket/11103] Bug fix (diff)
downloadphpbb-98731b127748af4673fdee92db2e139e84fd4d4b.tar.gz
phpbb-98731b127748af4673fdee92db2e139e84fd4d4b.tar.bz2
phpbb-98731b127748af4673fdee92db2e139e84fd4d4b.zip
[ticket/11103] Prettify the output for prosilver.
Create a way to mark items read from the output list. PHPBB3-11103
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/index.php b/phpBB/index.php
index 0ac8034d7f..38eeb2514e 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -56,6 +56,14 @@ if ($ext = $request->variable('ext', ''))
exit_handler();
}
+// Mark notifications read
+$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);
+}
+
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
$user->add_lang('viewforum');