1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-21 07:51:33 +02:00

[ticket/13468] Update calls to add_log()

PHPBB3-13468
This commit is contained in:
Gaëtan Muller
2015-01-05 22:21:31 +01:00
parent e2786c37dc
commit 7fc586080b
58 changed files with 568 additions and 329 deletions

View File

@@ -260,6 +260,8 @@ class acp_styles
*/
protected function action_uninstall_confirmed($ids, $delete_files)
{
global $user, $phpbb_log;
$default = $this->default_style;
$uninstalled = array();
$messages = array();
@@ -319,7 +321,7 @@ class acp_styles
// Log action
if (count($uninstalled))
{
add_log('admin', 'LOG_STYLE_DELETE', implode(', ', $uninstalled));
$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_STYLE_DELETE', false, array(implode(', ', $uninstalled)));
}
// Clear cache
@@ -391,6 +393,8 @@ class acp_styles
*/
protected function action_details()
{
global $user, $phpbb_log;
$id = $this->request->variable('id', 0);
if (!$id)
{
@@ -522,7 +526,8 @@ class acp_styles
$this->cache->purge();
}
}
add_log('admin', 'LOG_STYLE_EDIT_DETAILS', $style['style_name']);
$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_STYLE_EDIT_DETAILS', false, array($style['style_name']));
}
// Update default style
@@ -1119,6 +1124,8 @@ class acp_styles
*/
protected function install_style($style)
{
global $user, $phpbb_log;
// Generate row
$sql_ary = array();
foreach ($style as $key => $value)
@@ -1140,7 +1147,7 @@ class acp_styles
$this->db->sql_transaction('commit');
add_log('admin', 'LOG_STYLE_ADD', $sql_ary['style_name']);
$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_STYLE_ADD', false, array($sql_ary['style_name']));
return $id;
}