aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/report.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-10-09 22:02:49 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-10-09 22:02:49 -0500
commitb33e5273942c4f67e8168763eec224fd61edaa8f (patch)
tree9ebafda51385310def15ee9c31afbc68b98d3a85 /phpBB/report.php
parent7411d1d1bdb2e6cc61d5e97d15e184351ea67c64 (diff)
downloadforums-b33e5273942c4f67e8168763eec224fd61edaa8f.tar
forums-b33e5273942c4f67e8168763eec224fd61edaa8f.tar.gz
forums-b33e5273942c4f67e8168763eec224fd61edaa8f.tar.bz2
forums-b33e5273942c4f67e8168763eec224fd61edaa8f.tar.xz
forums-b33e5273942c4f67e8168763eec224fd61edaa8f.zip
[ticket/11103] Working on report notifications (post/pm)
PHPBB3-11103
Diffstat (limited to 'phpBB/report.php')
-rw-r--r--phpBB/report.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/report.php b/phpBB/report.php
index 29b46a6211..8bede2cffd 100644
--- a/phpBB/report.php
+++ b/phpBB/report.php
@@ -131,7 +131,7 @@ else
$message .= '<br /><br />' . sprintf($user->lang['RETURN_PM'], '<a href="' . $redirect_url . '">', '</a>');
trigger_error($message);
}
-
+
$reported_post_text = $report_data['message_text'];
}
@@ -184,6 +184,9 @@ if ($submit && $reason_id)
$lang_return = $user->lang['RETURN_TOPIC'];
$lang_success = $user->lang['POST_REPORTED_SUCCESS'];
+
+ // Notify relevant users
+ $phpbb_notifications->add_notifications('report_post', array_merge($report_data, $row, $forum_data));
}
else
{
@@ -210,6 +213,9 @@ if ($submit && $reason_id)
$lang_return = $user->lang['RETURN_PM'];
$lang_success = $user->lang['PM_REPORTED_SUCCESS'];
+
+ // Notify relevant users
+ //$phpbb_notifications->add_notifications('report_pm', $report_data);
}
meta_refresh(3, $redirect_url);