mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/events] Add core.viewtopic_postrow ledge
PHPBB3-9550
This commit is contained in:
parent
6c50f6610f
commit
54caef8f90
1 changed files with 5 additions and 0 deletions
|
@ -1574,6 +1574,11 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
|
||||||
$postrow = array_merge($postrow, $cp_row['row']);
|
$postrow = array_merge($postrow, $cp_row['row']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$vars = array('postrow');
|
||||||
|
$event = new phpbb_event_data(compact($vars));
|
||||||
|
$phpbb_dispatcher->dispatch('core.viewtopic_postrow', $event);
|
||||||
|
extract($event->get_data_filtered($vars));
|
||||||
|
|
||||||
// Dump vars into template
|
// Dump vars into template
|
||||||
$template->assign_block_vars('postrow', $postrow);
|
$template->assign_block_vars('postrow', $postrow);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue