aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorbrunoais <brunoaiss@gmail.com>2015-03-05 16:48:10 +0000
committerbrunoais <brunoaiss@gmail.com>2015-03-05 18:31:11 +0000
commit4cdcb6d5d347eccead34853c011083b519922da8 (patch)
tree48f333d0e37c70b2b1ce916ced9032994c97e3f8 /phpBB/includes
parentfa474c4378dc22e586f46f7a0e32df83d6a5c801 (diff)
downloadforums-4cdcb6d5d347eccead34853c011083b519922da8.tar
forums-4cdcb6d5d347eccead34853c011083b519922da8.tar.gz
forums-4cdcb6d5d347eccead34853c011083b519922da8.tar.bz2
forums-4cdcb6d5d347eccead34853c011083b519922da8.tar.xz
forums-4cdcb6d5d347eccead34853c011083b519922da8.zip
[ticket/13672] Allow changing the data from the user-submitted report
PHPBB3-13672
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/mcp/mcp_reports.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php
index 856c8794e2..f6acec31e3 100644
--- a/phpBB/includes/mcp/mcp_reports.php
+++ b/phpBB/includes/mcp/mcp_reports.php
@@ -94,6 +94,26 @@ class mcp_reports
$report = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
+ /**
+ * Allow changing the data obtained from the user-submitted report.
+ *
+ * @event core.mcp_reports_report_details_query_after
+ * @var array sql_ary The array in the format of the query builder with the query that had been executted
+ * @var mixed forum_id The forum_id, the number in the f GET parameter
+ * @var int post_id The post_id of the report being viewed (if 0, it is meaningless)
+ * @var int report_id The report_id of the report being viewed
+ * @var int report The query's resulting row.
+ * @since 3.1.4-RC1
+ */
+ $vars = array(
+ 'sql_ary',
+ 'forum_id',
+ 'post_id',
+ 'report_id',
+ 'report',
+ );
+ extract($phpbb_dispatcher->trigger_event('core.mcp_reports_report_details_query_after', compact($vars)));
+
if (!$report)
{
trigger_error('NO_REPORT');