aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-10-12 11:34:11 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-10-12 11:34:11 +0200
commit49312f05f88ca58346cbb00c2f03f01fd2a3d56d (patch)
tree1db2077dc34caf17f580771bf8967403b6a69660 /phpBB/includes/functions_admin.php
parenta0167ad41037d7fe9214ca36c4c7097177361a6b (diff)
downloadforums-49312f05f88ca58346cbb00c2f03f01fd2a3d56d.tar
forums-49312f05f88ca58346cbb00c2f03f01fd2a3d56d.tar.gz
forums-49312f05f88ca58346cbb00c2f03f01fd2a3d56d.tar.bz2
forums-49312f05f88ca58346cbb00c2f03f01fd2a3d56d.tar.xz
forums-49312f05f88ca58346cbb00c2f03f01fd2a3d56d.zip
[ticket/14168] Use attachment manager instead of separate classes
PHPBB3-14168
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index d44c60e5ec..bca451deb6 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -1024,10 +1024,10 @@ function delete_posts($where_type, $where_ids, $auto_sync = true, $posted_sync =
$search->index_remove($post_ids, $poster_ids, $forum_ids);
- /** @var \phpbb\attachment\delete $attachment_delete */
- $attachment_delete = $phpbb_container->get('attachment.delete');
- $attachment_delete->delete('post', $post_ids, false);
- unset($attachment_delete);
+ /** @var \phpbb\attachment\manager $attachment_manager */
+ $attachment_manager = $phpbb_container->get('attachment.manager');
+ $attachment_manager->delete('post', $post_ids, false);
+ unset($attachment_manager);
/**
* Perform additional actions during post(s) deletion
@@ -1124,11 +1124,11 @@ function delete_attachments($mode, $ids, $resync = true)
{
global $phpbb_container;
- /** @var \phpbb\attachment\delete $attachment_delete */
- $attachment_delete = $phpbb_container->get('attachment.delete');
+ /** @var \phpbb\attachment\manager $attachment_manager */
+ $attachment_manager = $phpbb_container->get('attachment.manager');
+ $num_deleted = $attachment_manager->delete($mode, $ids, $resync);
- $num_deleted = $attachment_delete->delete($mode, $ids, $resync);
- unset($attachment_delete);
+ unset($attachment_manager);
return $num_deleted;
}
@@ -1253,10 +1253,10 @@ function phpbb_unlink($filename, $mode = 'file', $entry_removed = false)
{
global $phpbb_container;
- /** @var \phpbb\attachment\delete $attachment_delete */
- $attachment_delete = $phpbb_container->get('attachment.delete');
- $unlink = $attachment_delete->unlink_attachment($filename, $mode, $entry_removed);
- unset($attachment_delete);
+ /** @var \phpbb\attachment\manager $attachment_manager */
+ $attachment_manager = $phpbb_container->get('attachment.manager');
+ $unlink = $attachment_manager->unlink($filename, $mode, $entry_removed);
+ unset($attachment_manager);
return $unlink;
}