diff --git a/phpBB/admin/admin_viewlogs.php b/phpBB/admin/admin_viewlogs.php
index 4fe5448bf4..a44f47dcfb 100644
--- a/phpBB/admin/admin_viewlogs.php
+++ b/phpBB/admin/admin_viewlogs.php
@@ -63,9 +63,16 @@ else
$mode = 'admin';
}
-//
+if ( isset($_POST['f']) || isset($_GET['f']) )
+{
+ $forum_id = ( isset($_POST['f']) ) ? $_POST['f'] : $_GET['f'];
+}
+else
+{
+ $forum_id = 0;
+}
+
// Define some vars depending on which logs we're looking at
-//
$log_table_sql = ( $mode == 'admin' ) ? LOG_ADMIN_TABLE : LOG_MOD_TABLE;
$l_title = ( $mode == 'admin' ) ? $lang['Admin_logs'] : $lang['Mod_logs'];
$l_title_explain = ( $mode == 'admin' ) ? $lang['Admin_logs_explain'] : $lang['Mod_logs_explain'];
@@ -141,19 +148,7 @@ $sort_order_options = ( $sort_dir == 'a' ) ? '';
-
- $right = $row['right_id'];
+ $selected = ( $row['forum_id'] == $default_forum ) ? ' selected="selected"' : '';
+ $forum_list .= '';
}
}
$db->sql_freeresult($result);
- $forum_list = ( $forum_list == '' ) ? '' : '';
-
- return $forum_list;
+ return ( $forum_list == '' ) ? '' : $forum_list;
}
// Synchronise functions for forums/topics
diff --git a/phpBB/language/en/lang_admin.php b/phpBB/language/en/lang_admin.php
index 737f136435..628d909dea 100644
--- a/phpBB/language/en/lang_admin.php
+++ b/phpBB/language/en/lang_admin.php
@@ -251,13 +251,13 @@ $lang = array_merge($lang, array(
'Delete_user_posts_explain' => 'Setting this to yes will remove all posts made by the pruned users.',
'Confirm_prune_users' => 'Are you sure you wish to prune the selected users?',
'Success_user_prune' => 'The selected users have been pruned successfully',
- 'Ban_explain' => 'Here you can control the banning of users by name, IP or email address. These methods prevent a user reaching any part of the board. You can give a short (255 character) reason for the ban if you wish. This will be displayed in the admin log. The length of a ban can also be specified. If you want the ban to end on a specific date rather than after a set time period select Other for the ban length and enter a date in yyyy-mm-dd format.',
+ 'Ban_explain' => 'Here you can control the banning of users by name, IP or email address. These methods prevent a user reaching any part of the board. You can give a short (255 character) reason for the ban if you wish. This will be displayed in the admin log. The length of a ban can also be specified. If you want the ban to end on a specific date rather than after a set time period select Until for the ban length and enter a date in yyyy-mm-dd format.',
'Ban_length' => 'Length of ban',
'Permanent' => 'Permanent',
'30_Mins' => '30 Minutes',
'1_Hour' => '1 Hour',
'6_Hours' => '6 Hours',
- 'Other' => 'Other ->',
+ 'Other' => 'Until ->',
'Ban_reason' => 'Reason for ban',
'Ban_username_explain' => 'You can ban multiple users in one go by entering each name on a new line. Use the Find a Username facility to look up and add one or more users automatically.',
'Unban_username' => 'Un-ban usernames',
diff --git a/phpBB/modcp.php b/phpBB/modcp.php
index 8dc2105934..1ace157609 100644
--- a/phpBB/modcp.php
+++ b/phpBB/modcp.php
@@ -466,7 +466,7 @@ switch( $mode )
'L_YES' => $lang['Yes'],
'L_NO' => $lang['No'],
- 'S_FORUM_SELECT' => make_forum_select('new_forum', $forum_id),
+ 'S_FORUM_SELECT' => '',
'S_MODCP_ACTION' => append_sid("modcp.$phpEx"),
'S_HIDDEN_FIELDS' => $hidden_fields)
);
@@ -665,7 +665,7 @@ switch( $mode )
'S_SPLIT_ACTION' => "modcp.$phpEx$SID",
'S_HIDDEN_FIELDS' => $s_hidden_fields,
- 'S_FORUM_SELECT' => make_forum_select("new_forum_id"))
+ 'S_FORUM_SELECT' => '')
);
for($i = 0; $i < $total_posts; $i++)