aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_queue.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-08-08 14:36:10 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-08-08 14:36:10 +0200
commit4e66d7bdd9a15b99e3b98cacc514674bd1c73c4d (patch)
tree1e0ec3583d457467bef7cd180ae9fd25ae98afdb /phpBB/includes/mcp/mcp_queue.php
parentb7f4d98cf2a3a7edbe4901fb000c58c2fc5133e0 (diff)
parent53247573c2de28ceb6effa986a1bd8d624a30499 (diff)
downloadforums-4e66d7bdd9a15b99e3b98cacc514674bd1c73c4d.tar
forums-4e66d7bdd9a15b99e3b98cacc514674bd1c73c4d.tar.gz
forums-4e66d7bdd9a15b99e3b98cacc514674bd1c73c4d.tar.bz2
forums-4e66d7bdd9a15b99e3b98cacc514674bd1c73c4d.tar.xz
forums-4e66d7bdd9a15b99e3b98cacc514674bd1c73c4d.zip
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12880] core.mcp_queue_!is_topics_query_before
Diffstat (limited to 'phpBB/includes/mcp/mcp_queue.php')
-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;