diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2014-08-07 15:09:42 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2014-08-07 15:09:42 +0200 |
| commit | d1cd81785ec2553765b54c806fee756a76b91e00 (patch) | |
| tree | 4d8617a863af73285e790d2d7f197d51735cce19 | |
| parent | d8338ded47ca0f60af4ddebeb7265b1a14edcd72 (diff) | |
| parent | 1304ccc02b835a319b8ffb656b528dd6b1d8ff8f (diff) | |
| download | forums-d1cd81785ec2553765b54c806fee756a76b91e00.tar forums-d1cd81785ec2553765b54c806fee756a76b91e00.tar.gz forums-d1cd81785ec2553765b54c806fee756a76b91e00.tar.bz2 forums-d1cd81785ec2553765b54c806fee756a76b91e00.tar.xz forums-d1cd81785ec2553765b54c806fee756a76b91e00.zip | |
Merge branch 'develop-ascraeus' into develop
| -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 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); |
