diff options
author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2012-09-03 18:51:29 -0500 |
---|---|---|
committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2012-09-03 18:51:29 -0500 |
commit | 9cba0b5263a8dcf0ff4cbfd6db2b37cd0cce55f1 (patch) | |
tree | f76204892a0c2cfe415939089a4bf02790a5f7d1 /phpBB/index.php | |
parent | b9308329cf3c0e6844a35f2d274423c2640887db (diff) | |
download | forums-9cba0b5263a8dcf0ff4cbfd6db2b37cd0cce55f1.tar forums-9cba0b5263a8dcf0ff4cbfd6db2b37cd0cce55f1.tar.gz forums-9cba0b5263a8dcf0ff4cbfd6db2b37cd0cce55f1.tar.bz2 forums-9cba0b5263a8dcf0ff4cbfd6db2b37cd0cce55f1.tar.xz forums-9cba0b5263a8dcf0ff4cbfd6db2b37cd0cce55f1.zip |
[ticket/8796] Mark read links updated to include time() in url
Submitting the current time() allows us to mark only the topics
and forums read up until a certain time (when the user loaded
the page). This means that any new posts or topics posted between
when the user opened the page and clicked the link are still
shown as unread.
PHPBB3-8796
Diffstat (limited to 'phpBB/index.php')
-rw-r--r-- | phpBB/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/index.php b/phpBB/index.php index 0ac8034d7f..66e1b2114b 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -167,7 +167,7 @@ $template->assign_vars(array( 'S_LOGIN_ACTION' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login'), 'S_DISPLAY_BIRTHDAY_LIST' => ($config['load_birthdays']) ? true : false, - 'U_MARK_FORUMS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'hash=' . generate_link_hash('global') . '&mark=forums') : '', + 'U_MARK_FORUMS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'hash=' . generate_link_hash('global') . '&mark=forums&mark_time=' . time()) : '', 'U_MCP' => ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&mode=front', true, $user->session_id) : '') ); |