mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
- automatically sync topic_reported when deleting a post [Bug #2152]
- retrieve forum information in report.php - don't update deleted topics - proper permission check for "admin or moderator" - allow changing poster while ip dropdown contains a different user [Bug #2190] - fixed a typo in acp_styles [Bug #2188] - allow inserting BBCode at the first position of the textarea [Bug #2078] - allow the style name to be different than the style path git-svn-id: file:///svn/phpbb/trunk@6063 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -59,6 +59,17 @@ if (!$report_data)
|
||||
$forum_id = (int) ($report_data['forum_id']) ? $report_data['forum_id'] : $forum_id;
|
||||
$topic_id = (int) $report_data['topic_id'];
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM ' . FORUMS_TABLE . '
|
||||
WHERE forum_id = ' . $forum_id;
|
||||
$result = $db->sql_query($sql);
|
||||
$forum_data = $db->sql_fetchrow($result);
|
||||
|
||||
if (!$forum_data)
|
||||
{
|
||||
trigger_error('FORUM_NOT_EXIST');
|
||||
}
|
||||
|
||||
// Check required permissions
|
||||
$acl_check_ary = array('f_list' => 'POST_NOT_EXIST', 'f_read' => 'USER_CANNOT_READ', 'f_report' => 'USER_CANNOT_REPORT');
|
||||
|
||||
@@ -140,7 +151,7 @@ $template->assign_vars(array(
|
||||
'S_CAN_NOTIFY' => ($user->data['is_registered']) ? true : false)
|
||||
);
|
||||
|
||||
generate_forum_nav($report_data);
|
||||
generate_forum_nav($forum_data);
|
||||
|
||||
// Start output of page
|
||||
page_header($user->lang['REPORT_POST']);
|
||||
|
Reference in New Issue
Block a user