mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11574] Use log object instead of old function
PHPBB3-11574
This commit is contained in:
parent
129e393b66
commit
fe7823b668
1 changed files with 2 additions and 2 deletions
|
@ -509,11 +509,11 @@ class install_update extends module
|
|||
|
||||
if ($all_up_to_date)
|
||||
{
|
||||
global $phpbb_log, $phpbb_container;
|
||||
global $phpbb_container;
|
||||
$phpbb_log = $phpbb_container->get('log');
|
||||
|
||||
// Add database update to log
|
||||
add_log('admin', 'LOG_UPDATE_PHPBB', $this->current_version, $this->update_to_version);
|
||||
$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_UPDATE_PHPBB', time(), array($this->current_version, $this->update_to_version));
|
||||
|
||||
$db->sql_return_on_error(true);
|
||||
$db->sql_query('DELETE FROM ' . CONFIG_TABLE . " WHERE config_name = 'version_update_from'");
|
||||
|
|
Loading…
Add table
Reference in a new issue