mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/12273] Update existing events
PHPBB3-12273
This commit is contained in:
@@ -307,7 +307,15 @@ class log implements \phpbb\log\log_interface
|
||||
* we won't add the entry to the database.
|
||||
* @since 3.1-A1
|
||||
*/
|
||||
$vars = array('mode', 'user_id', 'log_ip', 'log_operation', 'log_time', 'additional_data', 'sql_ary');
|
||||
$vars = array(
|
||||
'mode',
|
||||
'user_id',
|
||||
'log_ip',
|
||||
'log_operation',
|
||||
'log_time',
|
||||
'additional_data',
|
||||
'sql_ary',
|
||||
);
|
||||
extract($this->dispatcher->trigger_event('core.add_log', compact($vars)));
|
||||
|
||||
// We didn't find a log_type, so we don't save it in the database.
|
||||
@@ -405,9 +413,21 @@ class log implements \phpbb\log\log_interface
|
||||
* e.g.: 'AND l.forum_id = 1'
|
||||
* @since 3.1-A1
|
||||
*/
|
||||
$vars = array('mode', 'count_logs', 'limit', 'offset', 'forum_id', 'topic_id');
|
||||
$vars = array_merge($vars, array('user_id', 'log_time', 'sort_by', 'keywords'));
|
||||
$vars = array_merge($vars, array('profile_url', 'log_type', 'sql_additional'));
|
||||
$vars = array(
|
||||
'mode',
|
||||
'count_logs',
|
||||
'limit',
|
||||
'offset',
|
||||
'forum_id',
|
||||
'topic_id',
|
||||
'user_id',
|
||||
'log_time',
|
||||
'sort_by',
|
||||
'keywords',
|
||||
'profile_url',
|
||||
'log_type',
|
||||
'sql_additional',
|
||||
);
|
||||
extract($this->dispatcher->trigger_event('core.get_logs_modify_type', compact($vars)));
|
||||
|
||||
if ($log_type === false)
|
||||
|
Reference in New Issue
Block a user