diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-02-27 15:58:07 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-02-27 15:58:07 +0000 |
commit | 66062783ce4f2bba642cb2075a42b16c425f941c (patch) | |
tree | 54e4b4e740b7f340d9c2b7ca979a72209c375573 /phpBB/viewforum.php | |
parent | ce4e06811c3a6f6a30812428142139de9259a005 (diff) | |
download | forums-66062783ce4f2bba642cb2075a42b16c425f941c.tar forums-66062783ce4f2bba642cb2075a42b16c425f941c.tar.gz forums-66062783ce4f2bba642cb2075a42b16c425f941c.tar.bz2 forums-66062783ce4f2bba642cb2075a42b16c425f941c.tar.xz forums-66062783ce4f2bba642cb2075a42b16c425f941c.zip |
Potential (display) support for global announcements ... various issues still need to addressed wrt posting/replying/etc.
git-svn-id: file:///svn/phpbb/trunk@3567 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r-- | phpBB/viewforum.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index eed996e06a..8634a4a7a3 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -184,9 +184,6 @@ if ($forum_data['forum_postable']) gen_sort_selects($limit_days, $sort_by_text, $sort_days, $sort_key, $sort_dir, $s_limit_days, $s_sort_key, $s_sort_dir); // Limit topics to certain time frame, obtain correct topic count - $topics_count = ($forum_data['forum_topics']) ? $forum_data['forum_topics'] : 1; - $limit_topics_time = $topic_days = ''; - if ($sort_days) { $min_topic_time = time() - ($sort_days * 86400); @@ -205,6 +202,7 @@ if ($forum_data['forum_postable']) else { $topics_count = ($forum_data['forum_topics']) ? $forum_data['forum_topics'] : 1; + $limit_topics_time = ''; } // Select the sort order @@ -263,7 +261,8 @@ if ($forum_data['forum_postable']) FROM (' . TOPICS_TABLE . ' t LEFT JOIN ' . LASTREAD_TABLE . ' lr ON lr.topic_id = t.topic_id AND lr.user_id = ' . $user->data['user_id'] . ") - WHERE t.forum_id IN ($forum_id, 0) + WHERE (t.forum_id = $forum_id + OR t.forum_id = 0) AND t.topic_type = " . POST_ANNOUNCE . " ORDER BY $sort_order_sql LIMIT " . $config['topics_per_page']; |