mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge pull request #2763 from brunoais/ticket/12877
[ticket/12877] core.mcp_mcp_front_reports_listing_query_before
This commit is contained in:
commit
1304ccc02b
1 changed files with 12 additions and 0 deletions
|
@ -178,6 +178,18 @@ function mcp_front_view($id, $mode, $action)
|
||||||
|
|
||||||
'ORDER_BY' => 'p.post_time DESC',
|
'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);
|
$sql = $db->sql_build_query('SELECT', $sql_ary);
|
||||||
$result = $db->sql_query_limit($sql, 5);
|
$result = $db->sql_query_limit($sql, 5);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue