diff options
| author | rxu <rxu@mail.ru> | 2014-08-29 21:54:07 +0800 |
|---|---|---|
| committer | rxu <rxu@mail.ru> | 2014-09-07 19:48:06 +0800 |
| commit | de7b100b8af50717468f243f643fbc063aa37e93 (patch) | |
| tree | d285ec7439a81f186185d4ca3e7934be92b585da /phpBB | |
| parent | cbbef46c6cd3d453019779db0d6ef700cf11762b (diff) | |
| download | forums-de7b100b8af50717468f243f643fbc063aa37e93.tar forums-de7b100b8af50717468f243f643fbc063aa37e93.tar.gz forums-de7b100b8af50717468f243f643fbc063aa37e93.tar.bz2 forums-de7b100b8af50717468f243f643fbc063aa37e93.tar.xz forums-de7b100b8af50717468f243f643fbc063aa37e93.zip | |
[ticket/13020] Add forum_data variable to core.viewforum_get_topic_data event
PHPBB3-13020
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/viewforum.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 9086feb390..b34bf19de2 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -392,10 +392,15 @@ $sql_array = array( * Event to modify the SQL query before the topic data is retrieved * * @event core.viewforum_get_topic_data -* @var array sql_array The SQL array to get the data of all topics +* @var array forum_data Array with forum data +* @var array sql_array The SQL array to get the data of all topics * @since 3.1.0-a1 +* @change 3.1.0-RC4 Added forum_data var */ -$vars = array('sql_array'); +$vars = array( + 'forum_data', + 'sql_array', +); extract($phpbb_dispatcher->trigger_event('core.viewforum_get_topic_data', compact($vars))); $sql_approved = ' AND ' . $phpbb_content_visibility->get_visibility_sql('topic', $forum_id, 't.'); |
