aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/report.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-10-16 17:44:46 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-10-16 17:44:46 -0500
commit3839fe69027836d0c9083095208e4ed548a7ea38 (patch)
treef9e4a549c07846f546382ee9a3472686a879b0c8 /phpBB/report.php
parent3557b391154286d1cb18a6e6f88925758247860d (diff)
downloadforums-3839fe69027836d0c9083095208e4ed548a7ea38.tar
forums-3839fe69027836d0c9083095208e4ed548a7ea38.tar.gz
forums-3839fe69027836d0c9083095208e4ed548a7ea38.tar.bz2
forums-3839fe69027836d0c9083095208e4ed548a7ea38.tar.xz
forums-3839fe69027836d0c9083095208e4ed548a7ea38.zip
[ticket/11103] Use report text for report notification, never notify reporter
PHPBB3-11103
Diffstat (limited to 'phpBB/report.php')
-rw-r--r--phpBB/report.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/report.php b/phpBB/report.php
index dd1cc2514c..9f3b09d5ba 100644
--- a/phpBB/report.php
+++ b/phpBB/report.php
@@ -186,7 +186,9 @@ if ($submit && $reason_id)
$lang_success = $user->lang['POST_REPORTED_SUCCESS'];
// Notify relevant users
- $phpbb_notifications->add_notifications('report_post', array_merge($report_data, $row, $forum_data));
+ $phpbb_notifications->add_notifications('report_post', array_merge($report_data, $row, $forum_data, array(
+ 'report_text' => $report_text,
+ )));
}
else
{
@@ -216,6 +218,7 @@ if ($submit && $reason_id)
// Notify relevant users
$phpbb_notifications->add_notifications('report_pm', array_merge($report_data, $row, array(
+ 'report_text' => $report_text,
'from_user_id' => $report_data['author_id'],
'report_id' => $report_id,
)));