1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-31 12:01:48 +02:00

Fix bug #15729 - Global announcements marked as read if all new topics in forum are viewed

Authorised by: AcydBurn

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9926 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Ruslan Uzdenov
2009-08-05 12:51:48 +00:00
parent 58c0bd804f
commit 914687075d
6 changed files with 23 additions and 10 deletions

View File

@@ -179,7 +179,8 @@ if ($mark_read == 'topics')
$token = request_var('hash', '');
if (check_link_hash($token, 'global'))
{
markread('topics', $forum_id);
// Add 0 to forums array to mark global announcements correctly
markread('topics', array($forum_id, 0));
}
$redirect_url = append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $forum_id);
meta_refresh(3, $redirect_url);