aboutsummaryrefslogtreecommitdiff
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/functions_admin.php
parent[ticket/14168] Move phpbb_unlink() into attachment delete class (diff)
downloadphpbb-98ebbbdca2b7a57136745354b204d9aef181df4a.tar.gz
phpbb-98ebbbdca2b7a57136745354b204d9aef181df4a.tar.bz2
phpbb-98ebbbdca2b7a57136745354b204d9aef181df4a.zip
[ticket/14168] No longer use deprecated functions in core files
PHPBB3-14168
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 8928aeb2d6..c267577117 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -1024,7 +1024,10 @@ function delete_posts($where_type, $where_ids, $auto_sync = true, $posted_sync =
$search->index_remove($post_ids, $poster_ids, $forum_ids);
- delete_attachments('post', $post_ids, false);
+ /** @var \phpbb\attachment\delete $attachment_delete */
+ $attachment_delete = $phpbb_container->get('attachment.delete');
+ $attachment_delete->delete('post', $post_ids, false);
+ unset($attachment_delete);
/**
* Perform additional actions during post(s) deletion