aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-05-21 16:54:19 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-05-21 16:54:19 +0000
commit530b7e94c5e10eb1b9aa2ea488825265b685651e (patch)
treee679fd1af844e3b80d36923bde481873aee0e56d /phpBB/viewforum.php
parent2ddac1037550a12e6a49dd7d78f7884ce584eedc (diff)
downloadforums-530b7e94c5e10eb1b9aa2ea488825265b685651e.tar
forums-530b7e94c5e10eb1b9aa2ea488825265b685651e.tar.gz
forums-530b7e94c5e10eb1b9aa2ea488825265b685651e.tar.bz2
forums-530b7e94c5e10eb1b9aa2ea488825265b685651e.tar.xz
forums-530b7e94c5e10eb1b9aa2ea488825265b685651e.zip
- fixing a few smaller bugs/glitches
- init user session in cron.php (else it can produce errors if functions expect the user object being set) - fix sql escaping for mssql/mssql_odbc git-svn-id: file:///svn/phpbb/trunk@5957 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index f98274daa8..fa8f636e9a 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -500,6 +500,11 @@ if (sizeof($topic_list))
'S_UNREAD_TOPIC' => $unread_topic,
'S_TOPIC_REPORTED' => (!empty($row['topic_reported']) && $auth->acl_gets('m_report', $forum_id)) ? true : false,
'S_TOPIC_UNAPPROVED' => (!$row['topic_approved'] && $auth->acl_gets('m_approve', $forum_id)) ? true : false,
+ 'S_HAS_POLL' => ($row['poll_start']) ? true : false,
+ 'S_POST_ANNOUNCE' => ($row['topic_type'] == POST_ANNOUNCE) ? true : false,
+ 'S_POST_GLOBAL' => ($row['topic_type'] == POST_GLOBAL) ? true : false,
+ 'S_POST_STICKY' => ($row['topic_type'] == POST_STICKY) ? true : false,
+ 'S_TOPIC_MOVED' => ($row['topic_status'] == ITEM_MOVED) ? true : false,
'U_NEWEST_POST' => $view_topic_url . '&amp;view=unread#unread',
'U_LAST_POST' => $view_topic_url . '&amp;p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id'],