[ticket/11574] Use log object instead of old function

PHPBB3-11574
This commit is contained in:
Joas Schilling 2013-07-06 19:26:37 +02:00
parent 129e393b66
commit fe7823b668

View file

@ -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'");