aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_bbcodes.php
diff options
context:
space:
mode:
authorGaëtan Muller <m.gaetan89@gmail.com>2015-01-05 22:21:31 +0100
committerGaëtan Muller <m.gaetan89@gmail.com>2015-01-27 18:34:33 +0100
commit7fc586080bf5e7b6e90dcf44526200d7c9356d57 (patch)
tree046444e816e9e3c328cf2683c301da1d52c8d96c /phpBB/includes/acp/acp_bbcodes.php
parente2786c37dc1ef5c0e032e09bb6b7a18210eebfca (diff)
downloadforums-7fc586080bf5e7b6e90dcf44526200d7c9356d57.tar
forums-7fc586080bf5e7b6e90dcf44526200d7c9356d57.tar.gz
forums-7fc586080bf5e7b6e90dcf44526200d7c9356d57.tar.bz2
forums-7fc586080bf5e7b6e90dcf44526200d7c9356d57.tar.xz
forums-7fc586080bf5e7b6e90dcf44526200d7c9356d57.zip
[ticket/13468] Update calls to `add_log()`
PHPBB3-13468
Diffstat (limited to 'phpBB/includes/acp/acp_bbcodes.php')
-rw-r--r--phpBB/includes/acp/acp_bbcodes.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php
index e245eea069..0e82d233c7 100644
--- a/phpBB/includes/acp/acp_bbcodes.php
+++ b/phpBB/includes/acp/acp_bbcodes.php
@@ -26,7 +26,7 @@ class acp_bbcodes
function main($id, $mode)
{
global $db, $user, $auth, $template, $cache, $request, $phpbb_dispatcher;
- global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
+ global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx, $phpbb_log;
$user->add_lang('acp/posting');
@@ -285,7 +285,7 @@ class acp_bbcodes
$log_action = 'LOG_BBCODE_EDIT';
}
- add_log('admin', $log_action, $data['bbcode_tag']);
+ $phpbb_log->add('admin', $user->data['user_id'], $user->ip, $log_action, false, array($data['bbcode_tag']));
trigger_error($user->lang[$lang] . adm_back_link($this->u_action));
}
@@ -319,7 +319,7 @@ class acp_bbcodes
{
$db->sql_query('DELETE FROM ' . BBCODES_TABLE . " WHERE bbcode_id = $bbcode_id");
$cache->destroy('sql', BBCODES_TABLE);
- add_log('admin', 'LOG_BBCODE_DELETE', $row['bbcode_tag']);
+ $phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_BBCODE_DELETE', false, array($row['bbcode_tag']));
if ($request->is_ajax())
{