[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:
Bruno Ais 2012-12-02 23:07:40 +00:00
parent 83a71a2e77
commit 91246c20fa

View file

@ -76,6 +76,9 @@ if ($post_id)
$reported_post_text = $report_data['post_text']; $reported_post_text = $report_data['post_text'];
$reported_post_bitfield = $report_data['bbcode_bitfield']; $reported_post_bitfield = $report_data['bbcode_bitfield'];
$reported_post_uid = $report_data['bbcode_uid']; $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 * $sql = 'SELECT *
FROM ' . FORUMS_TABLE . ' FROM ' . FORUMS_TABLE . '
@ -136,7 +139,9 @@ else
$reported_post_text = $report_data['message_text']; $reported_post_text = $report_data['message_text'];
$reported_post_bitfield = $report_data['bbcode_bitfield']; $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? // Submit report?
@ -166,6 +171,9 @@ if ($submit && $reason_id)
'reported_post_text' => $reported_post_text, 'reported_post_text' => $reported_post_text,
'reported_post_uid' => $reported_post_uid, 'reported_post_uid' => $reported_post_uid,
'reported_post_bitfield' => $reported_post_bitfield, '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); $sql = 'INSERT INTO ' . REPORTS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);