mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-15 15:58:52 +00:00
[ticket/15699] Log update
PHPBB3-15699
This commit is contained in:
parent
9c51b3099a
commit
0c71ff5eab
1 changed files with 5 additions and 1 deletions
|
@ -30,6 +30,9 @@ class acp_storage
|
||||||
/** @var \db\driver\driver_interface $db */
|
/** @var \db\driver\driver_interface $db */
|
||||||
protected $db;
|
protected $db;
|
||||||
|
|
||||||
|
/** @var \log\log_interface $log */
|
||||||
|
protected $log;
|
||||||
|
|
||||||
/** @var \phpbb\path_helper $path_helper */
|
/** @var \phpbb\path_helper $path_helper */
|
||||||
protected $path_helper;
|
protected $path_helper;
|
||||||
|
|
||||||
|
@ -78,6 +81,7 @@ class acp_storage
|
||||||
$this->config_text = $phpbb_container->get('config_text');
|
$this->config_text = $phpbb_container->get('config_text');
|
||||||
$this->db = $phpbb_container->get('dbal.conn');
|
$this->db = $phpbb_container->get('dbal.conn');
|
||||||
$this->filesystem = $phpbb_container->get('filesystem');
|
$this->filesystem = $phpbb_container->get('filesystem');
|
||||||
|
$this->log = $phpbb_container->get('log');
|
||||||
$this->path_helper = $phpbb_container->get('path_helper');
|
$this->path_helper = $phpbb_container->get('path_helper');
|
||||||
$this->request = $phpbb_container->get('request');
|
$this->request = $phpbb_container->get('request');
|
||||||
$this->template = $phpbb_container->get('template');
|
$this->template = $phpbb_container->get('template');
|
||||||
|
@ -254,7 +258,7 @@ class acp_storage
|
||||||
$this->state = false;
|
$this->state = false;
|
||||||
$this->save_state();
|
$this->save_state();
|
||||||
|
|
||||||
//$phpbb_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); // todo
|
||||||
trigger_error($this->user->lang('STORAGE_UPDATE_SUCCESSFUL') . adm_back_link($this->u_action) . $this->close_popup_js());
|
trigger_error($this->user->lang('STORAGE_UPDATE_SUCCESSFUL') . adm_back_link($this->u_action) . $this->close_popup_js());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue