diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2014-08-30 22:56:26 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2014-08-30 22:56:26 +0200 |
| commit | 05a7a578159ed325ee4acb29f2b2d4b873b62409 (patch) | |
| tree | be452945833d41dbdabaf4b8096427161674c629 | |
| parent | df3bc78af8c39adeb090c6ab8ff345e34217c442 (diff) | |
| parent | 01f821bbc3fd8bf7e48e7b3adfd7954762906b36 (diff) | |
| download | forums-05a7a578159ed325ee4acb29f2b2d4b873b62409.tar forums-05a7a578159ed325ee4acb29f2b2d4b873b62409.tar.gz forums-05a7a578159ed325ee4acb29f2b2d4b873b62409.tar.bz2 forums-05a7a578159ed325ee4acb29f2b2d4b873b62409.tar.xz forums-05a7a578159ed325ee4acb29f2b2d4b873b62409.zip | |
Merge branch 'develop-ascraeus' into develop
| -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 ba118e5db8..247b9d1651 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-RC4 + */ + $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; |
