mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 01:36:57 +02:00
[ticket/10990] Do not use comma separator when storing it as a log.
PHPBB3-10990
This commit is contained in:
@@ -916,7 +916,7 @@ class acp_attachments
|
||||
WHERE ' . $db->sql_in_set('attach_id', array_keys($delete_files));
|
||||
$db->sql_query($sql);
|
||||
|
||||
add_log('admin', 'LOG_ATTACH_ORPHAN_DEL', implode($user->lang['COMMA_SEPARATOR'], $delete_files));
|
||||
add_log('admin', 'LOG_ATTACH_ORPHAN_DEL', implode(', ', $delete_files));
|
||||
$notify[] = sprintf($user->lang['LOG_ATTACH_ORPHAN_DEL'], implode($user->lang['COMMA_SEPARATOR'], $delete_files));
|
||||
}
|
||||
|
||||
@@ -1470,7 +1470,7 @@ class acp_attachments
|
||||
// Grab the list of entries
|
||||
$ips = request_var('ips', '');
|
||||
$ip_list = array_unique(explode("\n", $ips));
|
||||
$ip_list_log = implode($user->lang['COMMA_SEPARATOR'], $ip_list);
|
||||
$ip_list_log = implode(', ', $ip_list);
|
||||
|
||||
$ip_exclude = (int) $request->variable('ipexclude', false, false, phpbb_request_interface::POST);
|
||||
|
||||
|
@@ -123,7 +123,7 @@ class acp_bots
|
||||
|
||||
$cache->destroy('_bots');
|
||||
|
||||
add_log('admin', 'LOG_BOT_DELETE', implode($user->lang['COMMA_SEPARATOR'], $bot_name_ary));
|
||||
add_log('admin', 'LOG_BOT_DELETE', implode(', ', $bot_name_ary));
|
||||
trigger_error($user->lang['BOT_DELETED'] . adm_back_link($this->u_action));
|
||||
}
|
||||
else
|
||||
|
@@ -216,7 +216,7 @@ class acp_email
|
||||
if ($usernames)
|
||||
{
|
||||
$usernames = explode("\n", $usernames);
|
||||
add_log('admin', 'LOG_MASS_EMAIL', implode($user->lang['COMMA_SEPARATOR'], utf8_normalize_nfc($usernames)));
|
||||
add_log('admin', 'LOG_MASS_EMAIL', implode(', ', utf8_normalize_nfc($usernames)));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -273,7 +273,7 @@ class acp_prune
|
||||
}
|
||||
}
|
||||
|
||||
add_log('admin', $l_log, implode($user->lang['COMMA_SEPARATOR'], $usernames));
|
||||
add_log('admin', $l_log, implode(', ', $usernames));
|
||||
$msg = $user->lang['USER_' . strtoupper($action) . '_SUCCESS'];
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user