diff options
| author | Kailey Truscott <kinerity@yahoo.com> | 2016-06-20 18:21:05 -0400 |
|---|---|---|
| committer | Kailey Truscott <kinerity@yahoo.com> | 2016-06-20 18:21:05 -0400 |
| commit | 4653951673994f528cd4a6e84376caf058161120 (patch) | |
| tree | 132654be380af0a6d31e6dea0f7eda4896bdf854 /phpBB/viewforum.php | |
| parent | 9595946508c198be3aaae6deb88dee2bba354aef (diff) | |
| download | forums-4653951673994f528cd4a6e84376caf058161120.tar forums-4653951673994f528cd4a6e84376caf058161120.tar.gz forums-4653951673994f528cd4a6e84376caf058161120.tar.bz2 forums-4653951673994f528cd4a6e84376caf058161120.tar.xz forums-4653951673994f528cd4a6e84376caf058161120.zip | |
[ticket/14687] Modify viewforum_modify_topicrow event
Add s_type_switch and s_type_switch_test to event vars.
PHPBB3-14687
Diffstat (limited to 'phpBB/viewforum.php')
| -rw-r--r-- | phpBB/viewforum.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index ccf9c3cd5c..7297e6cb05 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -917,11 +917,15 @@ if (sizeof($topic_list)) * Modify the topic data before it is assigned to the template * * @event core.viewforum_modify_topicrow - * @var array row Array with topic data - * @var array topic_row Template array with topic data + * @var array row Array with topic data + * @var array topic_row Template array with topic data + * @var bool s_type_switch Flag indicating if the topic type is [global] announcement + * @var bool s_type_switch_test Flag indicating if the test topic type is [global] announcement * @since 3.1.0-a1 + * + * @changed 3.1.10-RC1 Added s_type_switch, s_type_switch_test */ - $vars = array('row', 'topic_row'); + $vars = array('row', 'topic_row', 's_type_switch', 's_type_switch_test'); extract($phpbb_dispatcher->trigger_event('core.viewforum_modify_topicrow', compact($vars))); $template->assign_block_vars('topicrow', $topic_row); |
