mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 08:17:47 +02:00
[ticket/14168] No longer use deprecated functions in core files
PHPBB3-14168
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user