diff options
author | Mate Bartus <mate.bartus@gmail.com> | 2015-11-09 09:11:03 +0100 |
---|---|---|
committer | Mate Bartus <mate.bartus@gmail.com> | 2015-11-09 09:11:03 +0100 |
commit | d04c7687c05b0474d3b3d42da94bc1383026ca7f (patch) | |
tree | c6a787ffdec1dc1a93adfecb6ba40512cdcb32ae /phpBB/phpbb/db | |
parent | e02432ec82a03539b94cad2814f2603d8bfe3a0b (diff) | |
download | forums-d04c7687c05b0474d3b3d42da94bc1383026ca7f.tar forums-d04c7687c05b0474d3b3d42da94bc1383026ca7f.tar.gz forums-d04c7687c05b0474d3b3d42da94bc1383026ca7f.tar.bz2 forums-d04c7687c05b0474d3b3d42da94bc1383026ca7f.tar.xz forums-d04c7687c05b0474d3b3d42da94bc1383026ca7f.zip |
[ticket/14277] Use user_id if available
PHPBB3-14277
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r-- | phpBB/phpbb/db/migration/tool/module.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/migration/tool/module.php b/phpBB/phpbb/db/migration/tool/module.php index 7110760868..a5ed62fd65 100644 --- a/phpBB/phpbb/db/migration/tool/module.php +++ b/phpBB/phpbb/db/migration/tool/module.php @@ -262,7 +262,7 @@ class module implements \phpbb\db\migration\tool\tool_interface // Success $module_log_name = ((isset($this->user->lang[$data['module_langname']])) ? $this->user->lang[$data['module_langname']] : $data['module_langname']); - $phpbb_log->add('admin', ANONYMOUS, $user->ip, 'LOG_MODULE_ADD', false, array($module_log_name)); + $phpbb_log->add('admin', (isset($user->data['user_id'])) ? $user->data['user_id'] : ANONYMOUS, $user->ip, 'LOG_MODULE_ADD', false, array($module_log_name)); // Move the module if requested above/below an existing one if (isset($data['before']) && $data['before']) |