mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/10714] Enable event core.get_logs_modify_entry_data
PHPBB3-10714
This commit is contained in:
parent
0bb4af90a4
commit
cf095dd393
1 changed files with 8 additions and 4 deletions
|
@ -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)
|
if ($phpbb_dispatcher != null)
|
||||||
{
|
{
|
||||||
$vars = array('log_entry_data', 'row');
|
$vars = array('row', 'log_entry_data');
|
||||||
extract($phpbb_dispatcher->trigger_event('core.get_logs_entry_data', $vars, $vars));
|
extract($phpbb_dispatcher->trigger_event('core.get_logs_modify_entry_data', $vars));
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
$log[$i] = $log_entry_data;
|
$log[$i] = $log_entry_data;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue