mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-15 22:26:32 +02:00
[ticket/11171] Adapted the code in report.php
Added the variable aliases needed (to look and feel the same as it was before) Added the variables into the table insert. PHPBB3-11171
This commit is contained in:
@ -76,6 +76,9 @@ if ($post_id)
|
||||
$reported_post_text = $report_data['post_text'];
|
||||
$reported_post_bitfield = $report_data['bbcode_bitfield'];
|
||||
$reported_post_uid = $report_data['bbcode_uid'];
|
||||
$reported_post_enable_bbcode = $report_data['enable_bbcode'];
|
||||
$reported_post_enable_smilies = $report_data['enable_smilies'];
|
||||
$reported_post_enable_magic_url = $report_data['enable_magic_url'];
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM ' . FORUMS_TABLE . '
|
||||
@ -136,7 +139,9 @@ else
|
||||
|
||||
$reported_post_text = $report_data['message_text'];
|
||||
$reported_post_bitfield = $report_data['bbcode_bitfield'];
|
||||
$reported_post_uid = $report_data['bbcode_uid'];
|
||||
$reported_post_enable_bbcode = $report_data['reported_post_enable_bbcode'];
|
||||
$reported_post_enable_smilies = $report_data['reported_post_enable_smilies'];
|
||||
$reported_post_enable_magic_url = $report_data['reported_post_enable_magic_url'];
|
||||
}
|
||||
|
||||
// Submit report?
|
||||
@ -166,6 +171,9 @@ if ($submit && $reason_id)
|
||||
'reported_post_text' => $reported_post_text,
|
||||
'reported_post_uid' => $reported_post_uid,
|
||||
'reported_post_bitfield' => $reported_post_bitfield,
|
||||
'reported_post_enable_bbcode' => $reported_post_enable_bbcode,
|
||||
'reported_post_enable_smilies' => $reported_post_enable_smilies,
|
||||
'reported_post_enable_magic_url' => $reported_post_enable_magic_url,
|
||||
);
|
||||
|
||||
$sql = 'INSERT INTO ' . REPORTS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
|
||||
|
Reference in New Issue
Block a user