aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_users.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-09-23 10:43:33 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-10-09 10:18:40 +0200
commit98ebbbdca2b7a57136745354b204d9aef181df4a (patch)
treed6848504160f12e7762b472015c05fdfbce8459c /phpBB/includes/acp/acp_users.php
parent04786313892df25f5adce555ebae6b2e5ad4d222 (diff)
downloadforums-98ebbbdca2b7a57136745354b204d9aef181df4a.tar
forums-98ebbbdca2b7a57136745354b204d9aef181df4a.tar.gz
forums-98ebbbdca2b7a57136745354b204d9aef181df4a.tar.bz2
forums-98ebbbdca2b7a57136745354b204d9aef181df4a.tar.xz
forums-98ebbbdca2b7a57136745354b204d9aef181df4a.zip
[ticket/14168] No longer use deprecated functions in core files
PHPBB3-14168
Diffstat (limited to 'phpBB/includes/acp/acp_users.php')
-rw-r--r--phpBB/includes/acp/acp_users.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php
index 857c625867..ab0eda507e 100644
--- a/phpBB/includes/acp/acp_users.php
+++ b/phpBB/includes/acp/acp_users.php
@@ -543,7 +543,10 @@ class acp_users
if (confirm_box(true))
{
- delete_attachments('user', $user_id);
+ /** @var \phpbb\attachment\delete $attachment_delete */
+ $attachment_delete = $phpbb_container->get('attachment.delete');
+ $attachment_delete->delete('user', $user_id);
+ unset($attachment_delete);
$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_USER_DEL_ATTACH', false, array($user_row['username']));
trigger_error($user->lang['USER_ATTACHMENTS_REMOVED'] . adm_back_link($this->u_action . '&amp;u=' . $user_id));
@@ -2126,7 +2129,10 @@ class acp_users
}
$db->sql_freeresult($result);
- delete_attachments('attach', $marked);
+ /** @var \phpbb\attachment\delete $attachment_delete */
+ $attachment_delete = $phpbb_container->get('attachment.delete');
+ $attachment_delete->delete('attach', $marked);
+ unset($attachment_delete);
$message = (sizeof($log_attachments) == 1) ? $user->lang['ATTACHMENT_DELETED'] : $user->lang['ATTACHMENTS_DELETED'];