1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-04 13:35:13 +02:00

[ticket/10714] Enable event core.get_logs_modify_entry_data

PHPBB3-10714
This commit is contained in:
Joas Schilling 2012-08-21 13:12:50 +02:00
parent 0bb4af90a4
commit cf095dd393

View File

@ -402,14 +402,18 @@ class phpbb_log implements phpbb_log_interface
);
/**
* @todo: enable when events are merged
* Modify the entry's data before it is returned
*
* @event core.get_logs_modify_entry_data
* @var array row Entry data from the database
* @var array log_entry_data Entry's data which is returned
* @since 3.1-A1
*/
if ($phpbb_dispatcher != null)
{
$vars = array('log_entry_data', 'row');
extract($phpbb_dispatcher->trigger_event('core.get_logs_entry_data', $vars, $vars));
$vars = array('row', 'log_entry_data');
extract($phpbb_dispatcher->trigger_event('core.get_logs_modify_entry_data', $vars));
}
*/
$log[$i] = $log_entry_data;