diff --git a/phpBB/admin/admin_forums.php b/phpBB/admin/admin_forums.php index 9b27811e88..ff73d57e3b 100644 --- a/phpBB/admin/admin_forums.php +++ b/phpBB/admin/admin_forums.php @@ -386,23 +386,16 @@ switch ($mode) $parents_list = make_forums_list('all', $parent_id, $subforums_id); - $l_title = ($forum_status != ITEM_CATEGORY) ? $user->lang['Edit_forum'] : $user->lang['Edit_category']; + $l_title = $user->lang['Edit_forum']; $newmode = 'modify'; $buttonvalue = $user->lang['Update']; $prune_enabled = ($prune_enable) ? 'checked="checked" ' : ''; - if ($forum_status != ITEM_CATEGORY) - { - $forums_list = make_forums_list('forums', 0, $forum_id); - } + $forums_list = make_forums_list('forums', 0, $forum_id); } else { - $parent_id = 0; - if (!empty($_POST['parent_id'])) - { - list($parent_id) = each($_POST['parent_id']); - } + $parent_id = (!empty($_POST['parent_id'])) ? $_POST['parent_id'] : 0; $parents_list = make_forums_list('all', $parent_id); $l_title = $user->lang['Create_forum']; @@ -413,7 +406,7 @@ switch ($mode) $forum_desc = ''; $forum_style = ''; $forum_status = ITEM_UNLOCKED; - $forum_name = (!empty($_POST['forum_name'][$parent_id])) ? htmlspecialchars($_POST['forum_name'][$parent_id]) : ''; + $forum_name = (!empty($_POST['forum_name'])) ? htmlspecialchars($_POST['forum_name']) : ''; $post_count_inc = TRUE; $moderated = FALSE; @@ -685,15 +678,16 @@ else } } +// Jumpbox +$forum_box = make_forum_select($forum_id); + ?>
lang['Forum_admin_explain']; ?>
-