aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/report.php
diff options
context:
space:
mode:
authorBruno Ais <brunoaiss@gmail.com>2012-01-25 14:30:52 +0000
committerOleg Pudeyev <oleg@bsdpower.com>2012-03-19 08:27:31 -0400
commit95b5109c622f8acd2d57343b97e3c2b6b157863a (patch)
treecf73f29660c54932fba72741f3726f175708fdbd /phpBB/report.php
parent1fa39ea722ab8e27402d3db67d5f11587570a96d (diff)
downloadforums-95b5109c622f8acd2d57343b97e3c2b6b157863a.tar
forums-95b5109c622f8acd2d57343b97e3c2b6b157863a.tar.gz
forums-95b5109c622f8acd2d57343b97e3c2b6b157863a.tar.bz2
forums-95b5109c622f8acd2d57343b97e3c2b6b157863a.tar.xz
forums-95b5109c622f8acd2d57343b97e3c2b6b157863a.zip
[feature/save-post-on-report] The complete changes for this feature
This covers all the changes so that when a report is made, the post itself is copied and displayed in the MCP instead of the current post. Unfortunatly, I made all commits in the wrong way and they were lost. Now I have only the final files.
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..ab4de68cea 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_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_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_text' => $reported_text,
);
$sql = 'INSERT INTO ' . REPORTS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);