aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-10-19 13:34:31 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-10-19 13:34:31 +0000
commit1a1a925e8f1c3e1504a9cca0a62b39a4742777af (patch)
treef22b9ac28054fb3bbb8a4e573226ef77e8ac85eb /phpBB/viewtopic.php
parentbc0898f55e2c0bda196fa44cc7d1bb15b6fda649 (diff)
downloadforums-1a1a925e8f1c3e1504a9cca0a62b39a4742777af.tar
forums-1a1a925e8f1c3e1504a9cca0a62b39a4742777af.tar.gz
forums-1a1a925e8f1c3e1504a9cca0a62b39a4742777af.tar.bz2
forums-1a1a925e8f1c3e1504a9cca0a62b39a4742777af.tar.xz
forums-1a1a925e8f1c3e1504a9cca0a62b39a4742777af.zip
erm, switches could be more useful if not within a loop. ;) and :P
git-svn-id: file:///svn/phpbb/trunk@8205 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 32b35a2060..c44d413f60 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -572,6 +572,7 @@ $template->assign_vars(array(
'S_TOPIC_MOD' => ($topic_mod != '') ? '<select name="action">' . $topic_mod . '</select>' : '',
'S_MOD_ACTION' => append_sid("{$phpbb_root_path}mcp.$phpEx", "f=$forum_id&amp;t=$topic_id&amp;quickmod=1&amp;redirect=" . urlencode(str_replace('&amp;', '&', $viewtopic_url)), true, $user->session_id),
+ 'S_VIEWTOPIC' => true,
'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", 't=' . $topic_id),
@@ -1425,7 +1426,6 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
'S_FIRST_UNREAD' => $s_first_unread,
'S_CUSTOM_FIELDS' => (isset($cp_row['row']) && sizeof($cp_row['row'])) ? true : false,
'S_TOPIC_POSTER' => ($topic_data['topic_poster'] == $poster_id) ? true : false,
- 'S_VIEWTOPIC' => true,
'S_IGNORE_POST' => ($row['hide_post']) ? true : false,
'L_IGNORE_POST' => ($row['hide_post']) ? sprintf($user->lang['POST_BY_FOE'], get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), '<a href="' . $viewtopic_url . "&amp;p={$row['post_id']}&amp;view=show#p{$row['post_id']}" . '">', '</a>') : '',