From 268d936f4673974e46d16d8ddd7edba1422aba9a Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Thu, 3 Oct 2002 02:43:41 +0000 Subject: Subforums handling part 2, it almost works. Also added: the "Explain" link at the bottom page, can be removed easily before official release if necessary. git-svn-id: file:///svn/phpbb/trunk@2913 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_forums.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'phpBB/admin/admin_forums.php') diff --git a/phpBB/admin/admin_forums.php b/phpBB/admin/admin_forums.php index 1f74bb0bf9..a15fb902c6 100644 --- a/phpBB/admin/admin_forums.php +++ b/phpBB/admin/admin_forums.php @@ -231,7 +231,7 @@ switch ($mode) 'prune_enable' => (!empty($_POST['prune_enable'])) ? 1 : 0, 'prune_days' => intval($_POST['prune_days']), 'prune_freq' => intval($_POST['prune_freq']), - 'display_on_index' => (!empty($_POST['display_on_index'])) ? 0 : 1, + 'display_on_index' => (!isset($_POST['display_on_index']) || !empty($_POST['display_on_index'])) ? 1 : 0, 'post_count_inc' => (!empty($_POST['disable_post_count'])) ? 0 : 1 ); @@ -477,12 +477,21 @@ switch ($mode) /> 0) { + // + // if this forum is a subforum put the "display on index" checkbox + // + if ($parent_info = get_forum_info($parent_id)) + { + if ($parent_info['parent_id'] > 0 || $parent_info['forum_status'] != ITEM_CATEGORY) + { ?> -
- /> +
+ /> -- cgit v1.2.1