in posting.php the event dispatcher is called directly triggering the core.posting_modify_template_vars event, but the event doesn't have any data, so it's impossible to modify the template array within the event listener.
Instead the array should be assigned to a variable and then the event should be triggered with the variable.
Around line 1477 in the beta:
Replace:
Code: Select all
$template->assign_vars(array( ... ));
$phpbb_dispatcher->dispatch('core.posting_modify_template_vars');
Code: Select all
$template_array = array(...);
$vars = array('template_array');
extract($phpbb_dispatcher->trigger_event('core.posting_modify_template_vars', compact($vars)));
$template->assign_vars(array( ... ));
Thanks!