1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01:00

[feature/attach-dl] Remove the archive after it's downloaded

PHPBB3-11042
This commit is contained in:
Fyorl 2012-08-10 13:13:13 +01:00
parent dd7be79fc3
commit 6da47555e0

View File

@ -410,5 +410,6 @@ else
$compress->close(); $compress->close();
phpbb_increment_downloads($db, $attachment_ids); phpbb_increment_downloads($db, $attachment_ids);
$compress->download($store_name, $archive_name); $compress->download($store_name, $archive_name);
unlink("{$phpbb_root_path}store/{$store_name}{$archive}");
file_gc(); file_gc();
} }