mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
[feature/attach-dl] Remove the archive after it's downloaded
PHPBB3-11042
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user