diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-11-13 14:29:24 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-11-13 14:29:24 +0100 |
commit | f4cff08a1943d2bd7f1fc18318fa73018bcf6499 (patch) | |
tree | 66be140433f2a12e06c65d57efbe0641180568d1 | |
parent | cfb0a4103083c4787beca30671d16eede92bd571 (diff) | |
download | forums-f4cff08a1943d2bd7f1fc18318fa73018bcf6499.tar forums-f4cff08a1943d2bd7f1fc18318fa73018bcf6499.tar.gz forums-f4cff08a1943d2bd7f1fc18318fa73018bcf6499.tar.bz2 forums-f4cff08a1943d2bd7f1fc18318fa73018bcf6499.tar.xz forums-f4cff08a1943d2bd7f1fc18318fa73018bcf6499.zip |
[ticket/12015] Add more parameters to core.viewtopic_get_post_data
PHPBB3-12015
-rw-r--r-- | phpBB/viewtopic.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 3a7e633c99..e6019c1ed6 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -1001,10 +1001,17 @@ $sql_ary = array( * Event to modify the SQL query before the post and poster data is retrieved * * @event core.viewtopic_get_post_data +* @var int forum_id Forum ID +* @var int topic_id Topic ID +* @var array topic_data Array with topic data +* @var array post_list Array with post_ids we are going to retrieve +* @var int sort_days Display posts of previous x days +* @var string sort_key Key the posts are sorted by +* @var string sort_dir Direction the posts are sorted by * @var array sql_ary The SQL array to get the data of posts and posters * @since 3.1-A1 */ -$vars = array('sql_ary'); +$vars = array('forum_id', 'topic_id', 'topic_data', 'post_list', 'sort_days', 'sort_key', 'sort_dir', 'sql_ary'); extract($phpbb_dispatcher->trigger_event('core.viewtopic_get_post_data', compact($vars))); $sql = $db->sql_build_query('SELECT', $sql_ary); |