aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-06-06 22:27:00 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-06-06 22:27:00 +0200
commit4babe93a5d9bd606d1d75fb8130e6b334f9b09c8 (patch)
tree041b827562ec6132105b88d888986f18622e2755 /phpBB
parent4f44145301590e462f9c98dc3ed6859b17eddfd4 (diff)
parent5c428517301994a47d253c9a9e85e745e5837b31 (diff)
downloadforums-4babe93a5d9bd606d1d75fb8130e6b334f9b09c8.tar
forums-4babe93a5d9bd606d1d75fb8130e6b334f9b09c8.tar.gz
forums-4babe93a5d9bd606d1d75fb8130e6b334f9b09c8.tar.bz2
forums-4babe93a5d9bd606d1d75fb8130e6b334f9b09c8.tar.xz
forums-4babe93a5d9bd606d1d75fb8130e6b334f9b09c8.zip
Merge pull request #5573 from dark-1/ticket/16024
[ticket/16024] Add core.topic_review_modify_sql_ary
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_posting.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 3640f543d9..5b7e0eafd6 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -978,6 +978,30 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_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);
$result = $db->sql_query($sql);