aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/report.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-03-27 22:45:02 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2012-03-27 22:45:02 -0400
commit4239d8aa4e53cda036f67e39d8eb61ccd317a6c9 (patch)
treecff929c639ffaec9ef725c6af35f1d5d351d3023 /phpBB/report.php
parent17a7fb7743ba3eb1bcb3d27d3958d503101c5bbb (diff)
parent3a044b4b3ef6b5a7c27ea357bc3b7d7dd101a262 (diff)
downloadforums-4239d8aa4e53cda036f67e39d8eb61ccd317a6c9.tar
forums-4239d8aa4e53cda036f67e39d8eb61ccd317a6c9.tar.gz
forums-4239d8aa4e53cda036f67e39d8eb61ccd317a6c9.tar.bz2
forums-4239d8aa4e53cda036f67e39d8eb61ccd317a6c9.tar.xz
forums-4239d8aa4e53cda036f67e39d8eb61ccd317a6c9.zip
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
Diffstat (limited to 'phpBB/report.php')
-rw-r--r--phpBB/report.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/phpBB/report.php b/phpBB/report.php
index e29001d389..29b46a6211 100644
--- a/phpBB/report.php
+++ b/phpBB/report.php
@@ -71,8 +71,9 @@ if ($post_id)
trigger_error('POST_NOT_EXIST');
}
- $forum_id = (int) $report_data['forum_id'];
- $topic_id = (int) $report_data['topic_id'];
+ $forum_id = (int) $report_data['forum_id'];
+ $topic_id = (int) $report_data['topic_id'];
+ $reported_post_text = $report_data['post_text'];
$sql = 'SELECT *
FROM ' . FORUMS_TABLE . '
@@ -130,6 +131,8 @@ else
$message .= '<br /><br />' . sprintf($user->lang['RETURN_PM'], '<a href="' . $redirect_url . '">', '</a>');
trigger_error($message);
}
+
+ $reported_post_text = $report_data['message_text'];
}
// Submit report?
@@ -155,7 +158,8 @@ if ($submit && $reason_id)
'user_notify' => (int) $user_notify,
'report_closed' => 0,
'report_time' => (int) time(),
- 'report_text' => (string) $report_text
+ 'report_text' => (string) $report_text,
+ 'reported_post_text' => $reported_post_text,
);
$sql = 'INSERT INTO ' . REPORTS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);