diff options
author | brunoais <brunoaiss@gmail.com> | 2014-08-07 18:58:50 +0100 |
---|---|---|
committer | brunoais <brunoaiss@gmail.com> | 2014-08-08 13:10:59 +0100 |
commit | 621f9408059cd72b552dd8562cf8842187e431a5 (patch) | |
tree | a98d00f5cdc9d69749a57658f22e9e902bb9602f /phpBB/includes/mcp/mcp_reports.php | |
parent | 8d8d54aac7d3f75e9b7d25f23c8bbe50de5220a3 (diff) | |
download | forums-621f9408059cd72b552dd8562cf8842187e431a5.tar forums-621f9408059cd72b552dd8562cf8842187e431a5.tar.gz forums-621f9408059cd72b552dd8562cf8842187e431a5.tar.bz2 forums-621f9408059cd72b552dd8562cf8842187e431a5.tar.xz forums-621f9408059cd72b552dd8562cf8842187e431a5.zip |
[ticket/12928] core.mcp_reports_gather_query_before
Adding the core.mcp_reports_gather_query_before
event to mcp backend.
PHPBB3-12928
Diffstat (limited to 'phpBB/includes/mcp/mcp_reports.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_reports.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php index a7d8bf18d6..52088c07b7 100644 --- a/phpBB/includes/mcp/mcp_reports.php +++ b/phpBB/includes/mcp/mcp_reports.php @@ -364,6 +364,27 @@ class mcp_reports AND r.pm_id = 0 $limit_time_sql ORDER BY $sort_order_sql"; + + /** + * Alter sql query to get report id of all reports for requested forum and topic or just forum + * + * @event core.mcp_reports_get_reports_query_before + * @var string sql String with the query to be executed + * @var array forum_list List of forums that contain the posts + * @var int topic_id topic_id in the page request + * @var string limit_time_sql String with the SQL code to limit the time interval of the post (Note: May be empty string) + * @var string sort_order_sql String with the ORDER BY SQL code used in this query + * @since 3.1.0-RC3 + */ + $vars = array( + 'sql', + 'forum_list', + 'topic_id', + 'limit_time_sql', + 'sort_order_sql', + ); + extract($phpbb_dispatcher->trigger_event('core.mcp_reports_get_reports_query_before', compact($vars))); + $result = $db->sql_query_limit($sql, $config['topics_per_page'], $start); $i = 0; |