From aee5fbcd8af43a719c8ac27c4f01578f07e5682a Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Thu, 3 Oct 2002 23:32:45 +0000 Subject: I updated my copy with the Area51 template so here it is, along with a couple of bugfixes :] git-svn-id: file:///svn/phpbb/trunk@2917 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/index.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'phpBB/index.php') diff --git a/phpBB/index.php b/phpBB/index.php index b2dc88fcb7..5dd654e637 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -96,11 +96,11 @@ get_moderators($forum_moderators); $cat_id = (!empty($_GET['c'])) ? intval($_GET['c']) : 0; $root_id = $branch_root_id = $cat_id; -$forum_rows = $subforums = $parent_forums = array(); +$forum_rows = $subforums = $nav_forums = array(); if ($cat_id == 0) { - $is_child = TRUE; + $is_nav = FALSE; $total_posts = 0; switch (SQL_LAYER) { @@ -120,7 +120,7 @@ if ($cat_id == 0) } else { - $is_child = FALSE; + $is_nav = TRUE; if (!$acl->get_acl($cat_id, 'forum', 'list')) { @@ -174,13 +174,13 @@ while ($row = $db->sql_fetchrow($result)) if ($row['forum_id'] == $cat_id) { - $parent_forums[] = $row; + $nav_forums[] = $row; $forum_rows[] = $row; - $is_child = TRUE; + $is_nav = FALSE; } - elseif (!$is_child) + elseif ($is_nav) { - $parent_forums[] = $row; + $nav_forums[] = $row; } else { @@ -265,7 +265,7 @@ $template->assign_vars(array( 'U_MARK_READ' => "index.$phpEx$SID&mark=forums") ); -foreach ($parent_forums as $row) +foreach ($nav_forums as $row) { if ($row['forum_status'] == ITEM_CATEGORY) { -- cgit v1.2.1