aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_database.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2015-01-28 09:27:16 +0100
committerTristan Darricau <github@nicofuma.fr>2015-01-28 09:27:16 +0100
commit0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb (patch)
tree527e1475e1e0fd0f011c56e3c2e56c769e08f8fa /phpBB/includes/acp/acp_database.php
parent828aa34ff99cecef3442e2d28dae5734f7db6e12 (diff)
parent7fc586080bf5e7b6e90dcf44526200d7c9356d57 (diff)
downloadforums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar
forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar.gz
forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar.bz2
forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.tar.xz
forums-0bdb4c1ed6369a2efd8bf527b2bc48bcd69df1bb.zip
Merge pull request #3263 from MGaetan89/ticket/13468
[ticket/13468] Change add_log() calls with $phpbb_log->add() * MGaetan89/ticket/13468: [ticket/13468] Update calls to `add_log()`
Diffstat (limited to 'phpBB/includes/acp/acp_database.php')
-rw-r--r--phpBB/includes/acp/acp_database.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/acp/acp_database.php b/phpBB/includes/acp/acp_database.php
index 7de108c88a..6454b30ec3 100644
--- a/phpBB/includes/acp/acp_database.php
+++ b/phpBB/includes/acp/acp_database.php
@@ -27,7 +27,7 @@ class acp_database
function main($id, $mode)
{
global $cache, $db, $user, $auth, $template, $table_prefix;
- global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
+ global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx, $phpbb_log;
$this->db_tools = new \phpbb\db\tools\tools($db);
@@ -165,7 +165,7 @@ class acp_database
$extractor->write_end();
- add_log('admin', 'LOG_DB_BACKUP');
+ $phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_DB_BACKUP');
if ($download == true)
{
@@ -242,7 +242,7 @@ class acp_database
if (confirm_box(true))
{
unlink($file_name);
- add_log('admin', 'LOG_DB_DELETE');
+ $phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_DB_DELETE');
trigger_error($user->lang['BACKUP_DELETE'] . adm_back_link($this->u_action));
}
else
@@ -395,7 +395,7 @@ class acp_database
// Purge the cache due to updated data
$cache->purge();
- add_log('admin', 'LOG_DB_RESTORE');
+ $phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_DB_RESTORE');
trigger_error($user->lang['RESTORE_SUCCESS'] . adm_back_link($this->u_action));
break;
}