mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
6261ea3c9e
1 changed files with 24 additions and 0 deletions
|
@ -944,6 +944,30 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id
|
||||||
AND u.user_id = p.poster_id',
|
AND u.user_id = p.poster_id',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Event to modify the SQL query for topic reviews
|
||||||
|
*
|
||||||
|
* @event core.topic_review_modify_sql_ary
|
||||||
|
* @var int topic_id The topic ID that is being reviewed
|
||||||
|
* @var int forum_id The topic's forum ID
|
||||||
|
* @var string mode The topic review mode
|
||||||
|
* @var int cur_post_id Post offset ID
|
||||||
|
* @var bool show_quote_button Flag indicating if the quote button should be displayed
|
||||||
|
* @var array post_list Array with the post IDs
|
||||||
|
* @var array sql_ary Array with the SQL query
|
||||||
|
* @since 3.2.8-RC1
|
||||||
|
*/
|
||||||
|
$vars = array(
|
||||||
|
'topic_id',
|
||||||
|
'forum_id',
|
||||||
|
'mode',
|
||||||
|
'cur_post_id',
|
||||||
|
'show_quote_button',
|
||||||
|
'post_list',
|
||||||
|
'sql_ary',
|
||||||
|
);
|
||||||
|
extract($phpbb_dispatcher->trigger_event('core.topic_review_modify_sql_ary', compact($vars)));
|
||||||
|
|
||||||
$sql = $db->sql_build_query('SELECT', $sql_ary);
|
$sql = $db->sql_build_query('SELECT', $sql_ary);
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue