mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
Merge remote-tracking branch 'brunoais/feature/save-post-on-report' into develop
* brunoais/feature/save-post-on-report: [feature/save-post-on-report] Changed mark in subsilver2 to look like viewtopic [feature/save-post-on-report] bbcode_nl2br missing. [feature/save-post-on-report] Change the column type of reported text [feature/save-post-on-report] Changed the name of the column [feature/save-post-on-report] Bug fix table name [feature/save-post-on-report] Saves the post reported when a report is creat [feature/save-post-on-report] The complete changes for this feature
This commit is contained in:
@@ -71,7 +71,7 @@ class mcp_reports
|
||||
// closed reports are accessed by report id
|
||||
$report_id = request_var('r', 0);
|
||||
|
||||
$sql = 'SELECT r.post_id, r.user_id, r.report_id, r.report_closed, report_time, r.report_text, rr.reason_title, rr.reason_description, u.username, u.username_clean, u.user_colour
|
||||
$sql = 'SELECT r.post_id, r.user_id, r.report_id, r.report_closed, report_time, r.report_text, r.reported_post_text, rr.reason_title, rr.reason_description, u.username, u.username_clean, u.user_colour
|
||||
FROM ' . REPORTS_TABLE . ' r, ' . REPORTS_REASONS_TABLE . ' rr, ' . USERS_TABLE . ' u
|
||||
WHERE ' . (($report_id) ? 'r.report_id = ' . $report_id : "r.post_id = $post_id") . '
|
||||
AND rr.reason_id = r.reason_id
|
||||
@@ -116,8 +116,9 @@ class mcp_reports
|
||||
$template->assign_vars(array(
|
||||
'S_TOPIC_REVIEW' => true,
|
||||
'S_BBCODE_ALLOWED' => $post_info['enable_bbcode'],
|
||||
'TOPIC_TITLE' => $post_info['topic_title'])
|
||||
);
|
||||
'TOPIC_TITLE' => $post_info['topic_title'],
|
||||
'REPORTED_POST_ID' => $post_id,
|
||||
));
|
||||
}
|
||||
|
||||
$topic_tracking_info = $extensions = $attachments = array();
|
||||
@@ -226,7 +227,7 @@ class mcp_reports
|
||||
'REPORTER_NAME' => get_username_string('username', $report['user_id'], $report['username'], $report['user_colour']),
|
||||
'U_VIEW_REPORTER_PROFILE' => get_username_string('profile', $report['user_id'], $report['username'], $report['user_colour']),
|
||||
|
||||
'POST_PREVIEW' => $message,
|
||||
'POST_PREVIEW' => bbcode_nl2br($report['reported_post_text']),
|
||||
'POST_SUBJECT' => ($post_info['post_subject']) ? $post_info['post_subject'] : $user->lang['NO_SUBJECT'],
|
||||
'POST_DATE' => $user->format_date($post_info['post_time']),
|
||||
'POST_IP' => $post_info['poster_ip'],
|
||||
|
Reference in New Issue
Block a user