aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2002-10-03 23:32:45 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2002-10-03 23:32:45 +0000
commitaee5fbcd8af43a719c8ac27c4f01578f07e5682a (patch)
tree1aee9b8ceac1572140274228c942edeecde2c003 /phpBB/index.php
parent743460bd80067eac830d4f830492f109e8ea76eb (diff)
downloadforums-aee5fbcd8af43a719c8ac27c4f01578f07e5682a.tar
forums-aee5fbcd8af43a719c8ac27c4f01578f07e5682a.tar.gz
forums-aee5fbcd8af43a719c8ac27c4f01578f07e5682a.tar.bz2
forums-aee5fbcd8af43a719c8ac27c4f01578f07e5682a.tar.xz
forums-aee5fbcd8af43a719c8ac27c4f01578f07e5682a.zip
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
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php16
1 files changed, 8 insertions, 8 deletions
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&amp;mark=forums")
);
-foreach ($parent_forums as $row)
+foreach ($nav_forums as $row)
{
if ($row['forum_status'] == ITEM_CATEGORY)
{