aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download
diff options
context:
space:
mode:
authorFyorl <gaelreth@gmail.com>2012-08-10 13:13:13 +0100
committerFyorl <gaelreth@gmail.com>2012-08-10 13:19:41 +0100
commit6da47555e040468e582ea73c501197d99689d07d (patch)
tree0428bc5842e0cf3bcbaa048603c37b06db699c4a /phpBB/download
parentdd7be79fc33e38f5517dfca9041c03212440dd96 (diff)
downloadforums-6da47555e040468e582ea73c501197d99689d07d.tar
forums-6da47555e040468e582ea73c501197d99689d07d.tar.gz
forums-6da47555e040468e582ea73c501197d99689d07d.tar.bz2
forums-6da47555e040468e582ea73c501197d99689d07d.tar.xz
forums-6da47555e040468e582ea73c501197d99689d07d.zip
[feature/attach-dl] Remove the archive after it's downloaded
PHPBB3-11042
Diffstat (limited to 'phpBB/download')
-rw-r--r--phpBB/download/file.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index a5d7eada3f..cd365767c2 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -410,5 +410,6 @@ else
$compress->close();
phpbb_increment_downloads($db, $attachment_ids);
$compress->download($store_name, $archive_name);
+ unlink("{$phpbb_root_path}store/{$store_name}{$archive}");
file_gc();
}