aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-06-09 13:54:43 -0700
committerCesar G <prototech91@gmail.com>2014-06-09 13:54:43 -0700
commit169a9a560d52778adc8b63c2a31254965af6f342 (patch)
tree64b8f9b3e283830b2f068c204e9092450e049bc8 /phpBB/viewtopic.php
parentb6232aa9b213fbf62f5ce351bc79220daf243cc6 (diff)
downloadforums-169a9a560d52778adc8b63c2a31254965af6f342.tar
forums-169a9a560d52778adc8b63c2a31254965af6f342.tar.gz
forums-169a9a560d52778adc8b63c2a31254965af6f342.tar.bz2
forums-169a9a560d52778adc8b63c2a31254965af6f342.tar.xz
forums-169a9a560d52778adc8b63c2a31254965af6f342.zip
[ticket/12667] Do not point viewtopic URL to unread post outside of view=unread
PHPBB3-12667
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 789d53c676..d13d4b444f 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -635,6 +635,7 @@ $template->assign_vars(array(
'L_RETURN_TO_FORUM' => $user->lang('RETURN_TO', $topic_data['forum_name']),
'S_VIEWTOPIC' => true,
+ 'S_UNREAD_VIEW' => $view == 'unread',
'S_DISPLAY_SEARCHBOX' => ($auth->acl_get('u_search') && $auth->acl_get('f_search', $forum_id) && $config['load_search']) ? true : false,
'S_SEARCHBOX_ACTION' => append_sid("{$phpbb_root_path}search.$phpEx"),
'S_SEARCH_LOCAL_HIDDEN_FIELDS' => build_hidden_fields($s_search_hidden_fields),