From dac0adead30ed70400a2a22f9439a8184ad479d8 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 3 May 2003 23:58:45 +0000 Subject: page header/footer become functions, forum passwords (I know, I know but it appears a popular feature for some reason ... inclusion not yet set in concrete nor complete), various bug fixes (and no doubt new bugs). git-svn-id: file:///svn/phpbb/trunk@3969 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_display.php | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'phpBB/includes/functions_display.php') diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 487fd129e9..2d83da22f8 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -108,19 +108,7 @@ function display_forums($root_data = '', $display_moderators = TRUE) $branch_root_id = $forum_id; } - // Show most recent last post info on parent if we're a subforum - if (isset($forum_rows[$parent_id]) && $row['forum_last_post_time'] > $forum_rows[$parent_id]['forum_last_post_time']) - { - $forum_rows[$parent_id]['forum_last_post_id'] = $row['forum_last_post_id']; - $forum_rows[$parent_id]['forum_last_post_time'] = $row['forum_last_post_time']; - $forum_rows[$parent_id]['forum_last_poster_id'] = $row['forum_last_poster_id']; - $forum_rows[$parent_id]['forum_last_poster_name'] = $row['forum_last_poster_name']; - $forum_rows[$parent_id]['forum_id_last_post'] = $row['forum_id']; - } - else - { - $forum_rows[$forum_id]['forum_id_last_post'] = $row['forum_id']; - } + $forum_rows[$parent_id]['forum_id_last_post'] = $row['forum_id']; } elseif ($row['forum_type'] != FORUM_CAT) { @@ -131,7 +119,6 @@ function display_forums($root_data = '', $display_moderators = TRUE) $forum_rows[$parent_id]['forum_topics'] += $row['forum_topics']; $forum_rows[$parent_id]['forum_posts'] += $row['forum_posts']; - // Show most recent last post info on parent if we're a subforum if (isset($forum_rows[$parent_id]) && $row['forum_last_post_time'] > $forum_rows[$parent_id]['forum_last_post_time']) { $forum_rows[$parent_id]['forum_last_post_id'] = $row['forum_last_post_id']; @@ -142,7 +129,7 @@ function display_forums($root_data = '', $display_moderators = TRUE) } else { - $forum_rows[$forum_id]['forum_id_last_post'] = $row['forum_id']; + $forum_rows[$parent_id]['forum_id_last_post'] = $row['forum_id']; } } -- cgit v1.2.1