[ticket/15699] Add information to logs

PHPBB3-15699
This commit is contained in:
Rubén Calvo 2018-08-25 18:01:58 +02:00 committed by Ruben Calvo
parent 3a25c0222b
commit 2c9f9fa75e
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -259,10 +259,11 @@ class acp_storage
$this->update_storage_config($storage_name);
}
$storages = array_keys($this->state['storages']);
$this->state = false;
$this->save_state();
$this->log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_STORAGE_UPDATE', false); // todo
$this->log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_STORAGE_UPDATE', false, $storages);
trigger_error($this->user->lang('STORAGE_UPDATE_SUCCESSFUL') . adm_back_link($this->u_action) . $this->close_popup_js());
}

View file

@ -768,7 +768,7 @@ $lang = array_merge($lang, array(
'LOG_STYLE_EDIT_DETAILS' => '<strong>Edited style</strong><br />» %s',
'LOG_STYLE_EXPORT' => '<strong>Exported style</strong><br />» %s',
'LOG_STORAGE_UPDATE' => '<strong>Storage updated</strong>',
'LOG_STORAGE_UPDATE' => '<strong>Storage updated</strong><br />» %s',
'LOG_UPDATE_DATABASE' => '<strong>Updated Database from version %1$s to version %2$s</strong>',
'LOG_UPDATE_PHPBB' => '<strong>Updated phpBB from version %1$s to version %2$s</strong>',