aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-05-03 23:58:45 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-05-03 23:58:45 +0000
commitdac0adead30ed70400a2a22f9439a8184ad479d8 (patch)
tree6a04b15e16669a1b6900c550ae06c856c06d09d8 /phpBB/includes/functions_display.php
parent5b927b016203cf0eb73bc33a787b778b9f614578 (diff)
downloadforums-dac0adead30ed70400a2a22f9439a8184ad479d8.tar
forums-dac0adead30ed70400a2a22f9439a8184ad479d8.tar.gz
forums-dac0adead30ed70400a2a22f9439a8184ad479d8.tar.bz2
forums-dac0adead30ed70400a2a22f9439a8184ad479d8.tar.xz
forums-dac0adead30ed70400a2a22f9439a8184ad479d8.zip
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
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php17
1 files changed, 2 insertions, 15 deletions
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'];
}
}