aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_reports.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2015-01-28 09:27:16 +0100
committerTristan Darricau <github@nicofuma.fr>2015-01-28 09:27:16 +0100
commit0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb (patch)
tree527e1475e1e0fd0f011c56e3c2e56c769e08f8fa /phpBB/includes/mcp/mcp_reports.php
parent828aa34ff99cecef3442e2d28dae5734f7db6e12 (diff)
parent7fc586080bf5e7b6e90dcf44526200d7c9356d57 (diff)
downloadforums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar
forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar.gz
forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar.bz2
forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar.xz
forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.zip
Merge pull request #3263 from MGaetan89/ticket/13468
[ticket/13468] Change add_log() calls with $phpbb_log->add() * MGaetan89/ticket/13468: [ticket/13468] Update calls to `add_log()`
Diffstat (limited to 'phpBB/includes/mcp/mcp_reports.php')
-rw-r--r--phpBB/includes/mcp/mcp_reports.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php
index 26f6a532c9..b54703bd9f 100644
--- a/phpBB/includes/mcp/mcp_reports.php
+++ b/phpBB/includes/mcp/mcp_reports.php
@@ -473,7 +473,7 @@ class mcp_reports
*/
function close_report($report_id_list, $mode, $action, $pm = false)
{
- global $db, $template, $user, $config, $auth;
+ global $db, $template, $user, $config, $auth, $phpbb_log;
global $phpEx, $phpbb_root_path, $phpbb_container;
$pm_where = ($pm) ? ' AND r.post_id = 0 ' : ' AND r.pm_id = 0 ';
@@ -654,12 +654,20 @@ function close_report($report_id_list, $mode, $action, $pm = false)
{
if ($pm)
{
- add_log('mod', 0, 0, 'LOG_PM_REPORT_' . strtoupper($action) . 'D', $post_info[$report['pm_id']]['message_subject']);
+ $phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_PM_REPORT_' . strtoupper($action) . 'D', false, array(
+ 'forum_id' => 0,
+ 'topic_id' => 0,
+ $post_info[$report['pm_id']]['message_subject']
+ ));
$phpbb_notifications->delete_notifications('notification.type.report_pm', $report['pm_id']);
}
else
{
- add_log('mod', $post_info[$report['post_id']]['forum_id'], $post_info[$report['post_id']]['topic_id'], 'LOG_REPORT_' . strtoupper($action) . 'D', $post_info[$report['post_id']]['post_subject']);
+ $phpbb_log->add('mod', $user->data['user_id'], $user->ip, 'LOG_REPORT_' . strtoupper($action) . 'D', false, array(
+ 'forum_id' => $post_info[$report['post_id']]['forum_id'],
+ 'topic_id' => $post_info[$report['post_id']]['topic_id'],
+ $post_info[$report['post_id']]['post_subject']
+ ));
$phpbb_notifications->delete_notifications('notification.type.report_post', $report['post_id']);
}
}