[feature/php-events] Make topic db row available in event

PHPBB3-9550
This commit is contained in:
Joas Schilling 2012-06-20 16:03:46 +02:00
parent 4745d4ec6c
commit 45d534978b

View file

@ -745,7 +745,7 @@ if (sizeof($topic_list))
'S_TOPIC_TYPE_SWITCH' => ($s_type_switch == $s_type_switch_test) ? -1 : $s_type_switch_test, 'S_TOPIC_TYPE_SWITCH' => ($s_type_switch == $s_type_switch_test) ? -1 : $s_type_switch_test,
); );
$vars = array('topicrow'); $vars = array('row', 'topicrow');
extract($phpbb_dispatcher->trigger_event('core.viewforum_topicrow', compact($vars))); extract($phpbb_dispatcher->trigger_event('core.viewforum_topicrow', compact($vars)));
$template->assign_block_vars('topicrow', $topicrow); $template->assign_block_vars('topicrow', $topicrow);