mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11387] Log module added only after it has been added
PHPBB3-11387
This commit is contained in:
parent
4670ffe90c
commit
49de9e3d44
1 changed files with 2 additions and 3 deletions
|
@ -209,9 +209,6 @@ class phpbb_db_migration_tool_module implements phpbb_db_migration_tool_interfac
|
||||||
}
|
}
|
||||||
|
|
||||||
// The "manual" way
|
// The "manual" way
|
||||||
$module_log_name = ((isset($this->user->lang[$data['module_langname']])) ? $this->user->lang[$data['module_langname']] : $data['module_langname']);
|
|
||||||
add_log('admin', 'LOG_MODULE_ADD', $module_log_name);
|
|
||||||
|
|
||||||
if (!is_numeric($parent))
|
if (!is_numeric($parent))
|
||||||
{
|
{
|
||||||
$sql = 'SELECT module_id
|
$sql = 'SELECT module_id
|
||||||
|
@ -267,6 +264,8 @@ class phpbb_db_migration_tool_module implements phpbb_db_migration_tool_interfac
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Success
|
// Success
|
||||||
|
$module_log_name = ((isset($this->user->lang[$data['module_langname']])) ? $this->user->lang[$data['module_langname']] : $data['module_langname']);
|
||||||
|
add_log('admin', 'LOG_MODULE_ADD', $module_log_name);
|
||||||
|
|
||||||
// Move the module if requested above/below an existing one
|
// Move the module if requested above/below an existing one
|
||||||
if (isset($data['before']) && $data['before'])
|
if (isset($data['before']) && $data['before'])
|
||||||
|
|
Loading…
Add table
Reference in a new issue