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['Manage']; ?>

lang['Forum_admin_explain']; ?>

-
"> - - +">
@@ -710,12 +704,11 @@ $result = $db->sql_query('SELECT * FROM ' . FORUMS_TABLE . " WHERE parent_id = $ while ($row = $db->sql_fetchrow($result)) { // DEBUG - $forum_id = $row['forum_id']; $parent_id = $row['parent_id']; $forum_title = htmlspecialchars($row['forum_name']); $forum_desc = htmlspecialchars($row['forum_desc']); - if ($forum_status != ITEM_LOCKED) + if ($row['forum_status'] != ITEM_LOCKED) { if ($row['left_id'] + 1 != $row['right_id']) { @@ -723,15 +716,15 @@ while ($row = $db->sql_fetchrow($result)) } else { - $folder_image = '' . $user->lang['SUBFORUM'] . ''; + $folder_image = '' . $user->lang['FOLDER'] . ''; } } else { - $folder_image = '' . $user->lang['SUBFORUM'] . ''; + $folder_image = '' . $user->lang['LOCKED'] . ''; } - $url = $phpEx . $SID . '&this_f=' . $row['forum_id']; + $url = $phpEx . $SID . '&f=' . $forum_id . '&this_f=' . $row['forum_id']; $forum_title = '' . $forum_title . ''; @@ -753,7 +746,13 @@ while ($row = $db->sql_fetchrow($result)) ?> - + + +
+ +
+ +
lang['Select_forum']; ?>:
diff --git a/phpBB/admin/images/icon_folder_lock.gif b/phpBB/admin/images/icon_folder_lock.gif index 10eb776972..436f3d21c8 100644 Binary files a/phpBB/admin/images/icon_folder_lock.gif and b/phpBB/admin/images/icon_folder_lock.gif differ