aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_reports.php
diff options
context:
space:
mode:
authorbrunoais <brunoaiss@gmail.com>2015-03-05 16:21:23 +0000
committerbrunoais <brunoaiss@gmail.com>2015-03-05 16:21:23 +0000
commit8a6d55520d5165e2abdd3a48ef70be2a2b4e8308 (patch)
treea1a4f7195decf33c2268906ff33d5de011d3bc1c /phpBB/includes/mcp/mcp_reports.php
parentfa474c4378dc22e586f46f7a0e32df83d6a5c801 (diff)
downloadforums-8a6d55520d5165e2abdd3a48ef70be2a2b4e8308.tar
forums-8a6d55520d5165e2abdd3a48ef70be2a2b4e8308.tar.gz
forums-8a6d55520d5165e2abdd3a48ef70be2a2b4e8308.tar.bz2
forums-8a6d55520d5165e2abdd3a48ef70be2a2b4e8308.tar.xz
forums-8a6d55520d5165e2abdd3a48ef70be2a2b4e8308.zip
[ticket/13668] Allow changing the query to obtain the user-submitted report.
PHPBB3-13668
Diffstat (limited to 'phpBB/includes/mcp/mcp_reports.php')
-rw-r--r--phpBB/includes/mcp/mcp_reports.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php
index 856c8794e2..5d3732e12c 100644
--- a/phpBB/includes/mcp/mcp_reports.php
+++ b/phpBB/includes/mcp/mcp_reports.php
@@ -89,6 +89,25 @@ class mcp_reports
'ORDER_BY' => 'report_closed ASC',
);
+
+ /**
+ * Allow changing the query to obtain the user-submitted report.
+ *
+ * @event core.mcp_reports_report_details_query_before
+ * @var array sql_ary The array in the format of the query builder with the query
+ * @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
+ * @since 3.1.4-RC1
+ */
+ $vars = array(
+ 'sql_ary',
+ 'forum_id',
+ 'post_id',
+ 'report_id',
+ );
+ extract($phpbb_dispatcher->trigger_event('core.mcp_reports_report_details_query_before', compact($vars)));
+
$sql = $db->sql_build_query('SELECT', $sql_ary);
$result = $db->sql_query_limit($sql, 1);
$report = $db->sql_fetchrow($result);