diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-08-08 14:52:55 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-08-08 14:52:55 +0200 |
commit | 55c21834ad08a99a8c4b1f24d64a74edd4c9612d (patch) | |
tree | 6be94c5b93b68de5bf599577fbff11bf93e3741a /phpBB/includes/mcp/mcp_queue.php | |
parent | 4e66d7bdd9a15b99e3b98cacc514674bd1c73c4d (diff) | |
parent | 96e9d728b9f373601ad948291ba676c7f9c281fb (diff) | |
download | forums-55c21834ad08a99a8c4b1f24d64a74edd4c9612d.tar forums-55c21834ad08a99a8c4b1f24d64a74edd4c9612d.tar.gz forums-55c21834ad08a99a8c4b1f24d64a74edd4c9612d.tar.bz2 forums-55c21834ad08a99a8c4b1f24d64a74edd4c9612d.tar.xz forums-55c21834ad08a99a8c4b1f24d64a74edd4c9612d.zip |
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus:
[ticket/12927] core.mcp_queue_get_posts2_query_before
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 3a8f433dc1..54b31c642a 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -501,6 +501,29 @@ class mcp_queue AND topic_delete_user <> 0 $limit_time_sql ORDER BY $sort_order_sql"; + + /** + * Alter sql query to get information on all topics in the list of forums provided. + * + * @event core.mcp_queue_get_posts_for_topics_query_before + * @var string sql String 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 topic_id in the page request + * @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_for_topics_query_before', compact($vars))); + $result = $db->sql_query_limit($sql, $config['topics_per_page'], $start); $rowset = array(); |