diff options
author | brunoais <brunoaiss@gmail.com> | 2014-07-20 10:42:02 +0100 |
---|---|---|
committer | brunoais <brunoaiss@gmail.com> | 2014-08-07 18:33:37 +0100 |
commit | 50cc81afa3fc6bbcffe833838507a033bd09ad3e (patch) | |
tree | 692e1f1d97b456a9ae4238e6b0ae4488714dc6ee /phpBB/includes/mcp/mcp_queue.php | |
parent | a0e00889d1a03804625522405824ac8cbce15c22 (diff) | |
download | forums-50cc81afa3fc6bbcffe833838507a033bd09ad3e.tar forums-50cc81afa3fc6bbcffe833838507a033bd09ad3e.tar.gz forums-50cc81afa3fc6bbcffe833838507a033bd09ad3e.tar.bz2 forums-50cc81afa3fc6bbcffe833838507a033bd09ad3e.tar.xz forums-50cc81afa3fc6bbcffe833838507a033bd09ad3e.zip |
[ticket/12880] core.mcp_queue_!is_topics_query_before
Adding core.mcp_queue_is_topics_query_before
PHPBB3-12880
Diffstat (limited to 'phpBB/includes/mcp/mcp_queue.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_queue.php | 23 |
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; |