aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-08-08 14:35:53 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-08-08 14:35:53 +0200
commit53247573c2de28ceb6effa986a1bd8d624a30499 (patch)
treea2b443d75c47ba913f8bad6385a60011500ca2c1 /phpBB/includes/mcp
parentbef9d641796e08080fe19be8b5a2abd9ff5e140b (diff)
parent50cc81afa3fc6bbcffe833838507a033bd09ad3e (diff)
downloadforums-53247573c2de28ceb6effa986a1bd8d624a30499.tar
forums-53247573c2de28ceb6effa986a1bd8d624a30499.tar.gz
forums-53247573c2de28ceb6effa986a1bd8d624a30499.tar.bz2
forums-53247573c2de28ceb6effa986a1bd8d624a30499.tar.xz
forums-53247573c2de28ceb6effa986a1bd8d624a30499.zip
Merge pull request #2764 from brunoais/ticket/12880
[ticket/12880] core.mcp_queue_!is_topics_query_before * brunoais/ticket/12880: [ticket/12880] core.mcp_queue_!is_topics_query_before
Diffstat (limited to 'phpBB/includes/mcp')
-rw-r--r--phpBB/includes/mcp/mcp_queue.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php
index 37ce3c6fc3..3a8f433dc1 100644
--- a/phpBB/includes/mcp/mcp_queue.php
+++ b/phpBB/includes/mcp/mcp_queue.php
@@ -429,6 +429,29 @@ class mcp_queue
OR t.topic_delete_user = 0)
$limit_time_sql
ORDER BY $sort_order_sql";
+
+ /**
+ * Alter sql query to get posts in queue to be accepted
+ *
+ * @event core.mcp_queue_get_posts_query_before
+ * @var string sql Associative array with the query to be executed
+ * @var array forum_list List of forums that contain the posts
+ * @var int visibility_const Integer with one of the possible ITEM_* constant values
+ * @var int topic_id If topic_id not equal to 0, the topic id to filter the posts to display
+ * @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-RC3
+ */
+ $vars = array(
+ 'sql',
+ 'forum_list',
+ 'visibility_const',
+ 'topic_id',
+ 'limit_time_sql',
+ 'sort_order_sql',
+ );
+ extract($phpbb_dispatcher->trigger_event('core.mcp_queue_get_posts_query_before', compact($vars)));
+
$result = $db->sql_query_limit($sql, $config['topics_per_page'], $start);
$i = 0;