aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-03-06 01:08:00 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-03-06 01:08:00 +0000
commit7132f97d0a09220f31e3bb81accaf91c21702cbb (patch)
treec4aa85c2370d85cf670a2b2d808cafcc6e497d05 /phpBB/viewforum.php
parent799b5fc2dece8a23ad7fb92d531cb8866a6843f5 (diff)
downloadforums-7132f97d0a09220f31e3bb81accaf91c21702cbb.tar
forums-7132f97d0a09220f31e3bb81accaf91c21702cbb.tar.gz
forums-7132f97d0a09220f31e3bb81accaf91c21702cbb.tar.bz2
forums-7132f97d0a09220f31e3bb81accaf91c21702cbb.tar.xz
forums-7132f97d0a09220f31e3bb81accaf91c21702cbb.zip
New template var for future use.
git-svn-id: file:///svn/phpbb/trunk@3600 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index d268fab721..b746b2f917 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -239,6 +239,7 @@ if ($forum_data['forum_postable'])
'S_TOPIC_ICONS' => ($forum_data['enable_icons']) ? true : false,
'S_WATCH_FORUM' => $s_watching_forum,
'S_FORUM_ACTION' => 'viewforum.' . $phpEx . $SID . '&amp;f=' . $forum_id . "&amp;start=$start",
+
'S_SHOW_SEARCHBOX' => ($auth->acl_gets('f_search', 'm_', 'a_', $forum_id)) ? true : false,
'S_SEARCHBOX_ACTION'=> "search.$phpEx$SID&amp;f=$forum_id",
@@ -486,6 +487,8 @@ if ($forum_data['forum_postable'])
'S_TOPIC_TYPE' => $row['topic_type'],
'S_USER_POSTED' => ($row['lastread_type'] == LASTREAD_POSTED) ? true : false,
+ 'S_TOPIC_REPORTED' => (!empty($row['topic_reported']) && $auth->acl_gets('m_', 'a_', $forum_id)) ? TRUE : FALSE,
+
'U_VIEW_TOPIC' => $view_topic_url)
);