aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorbrunoais <brunoaiss@gmail.com>2014-07-20 10:25:18 +0100
committerbrunoais <brunoaiss@gmail.com>2014-07-23 07:20:20 +0100
commita0feced63eaa6bbb254999f9bf41f6987381ae82 (patch)
treef1ddaf4d5aa792ad9191be138eee08979b0a254c /phpBB
parenta0e00889d1a03804625522405824ac8cbce15c22 (diff)
downloadforums-a0feced63eaa6bbb254999f9bf41f6987381ae82.tar
forums-a0feced63eaa6bbb254999f9bf41f6987381ae82.tar.gz
forums-a0feced63eaa6bbb254999f9bf41f6987381ae82.tar.bz2
forums-a0feced63eaa6bbb254999f9bf41f6987381ae82.tar.xz
forums-a0feced63eaa6bbb254999f9bf41f6987381ae82.zip
[ticket/12877] core.mcp_mcp_front_reports_listing_query_before
Adding core.mcp_mcp_front_reports_listing_query_before PHPBB3-12877
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/mcp/mcp_front.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_front.php b/phpBB/includes/mcp/mcp_front.php
index 04206a6fcd..98773d5b0e 100644
--- a/phpBB/includes/mcp/mcp_front.php
+++ b/phpBB/includes/mcp/mcp_front.php
@@ -178,6 +178,18 @@ function mcp_front_view($id, $mode, $action)
'ORDER_BY' => 'p.post_time DESC',
);
+
+ /**
+ * Alter sql query to get latest reported posts
+ *
+ * @event core.mcp_front_reports_listing_query_before
+ * @var int sql_ary Associative array with the query to be executed
+ * @var array forum_list List of forums that contain the posts
+ * @since 3.1.0-RC3
+ */
+ $vars = array('sql_ary', 'forum_list');
+ extract($phpbb_dispatcher->trigger_event('core.mcp_front_reports_listing_query_before', compact($vars)));
+
$sql = $db->sql_build_query('SELECT', $sql_ary);
$result = $db->sql_query_limit($sql, 5);