diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-05-08 00:17:24 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-05-08 00:17:24 +0200 |
commit | d27558668901b0cef73b3c7bcc6a0d5c7d3624eb (patch) | |
tree | 8ec219755f6e338a128d8c691ee04bd0e8fea706 /phpBB/includes | |
parent | d73c5f12920a482de92bc5bfd7fd1a94b59e53c4 (diff) | |
parent | 1e28748c0c4024960df0bb89a5ba6e3510b4b471 (diff) | |
download | forums-d27558668901b0cef73b3c7bcc6a0d5c7d3624eb.tar forums-d27558668901b0cef73b3c7bcc6a0d5c7d3624eb.tar.gz forums-d27558668901b0cef73b3c7bcc6a0d5c7d3624eb.tar.bz2 forums-d27558668901b0cef73b3c7bcc6a0d5c7d3624eb.tar.xz forums-d27558668901b0cef73b3c7bcc6a0d5c7d3624eb.zip |
Merge branch '3.1.x'
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/mcp/mcp_front.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_front.php b/phpBB/includes/mcp/mcp_front.php index ea17f55402..e6fd3e3a6b 100644 --- a/phpBB/includes/mcp/mcp_front.php +++ b/phpBB/includes/mcp/mcp_front.php @@ -157,6 +157,18 @@ function mcp_front_view($id, $mode, $action) AND r.pm_id = 0 AND r.report_closed = 0 AND ' . $db->sql_in_set('p.forum_id', $forum_list); + + /** + * Alter sql query to count the number of reported posts + * + * @event core.mcp_front_reports_count_query_before + * @var int sql The query string used to get the number of reports that exist + * @var array forum_list List of forums that contain the posts + * @since 3.1.5-RC1 + */ + $vars = array('sql', 'forum_list'); + extract($phpbb_dispatcher->trigger_event('core.mcp_front_reports_count_query_before', compact($vars))); + $result = $db->sql_query($sql); $total = (int) $db->sql_fetchfield('total'); $db->sql_freeresult($result); |