mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
[feature/attach-dl] Increase download counters closely before streaming archive
PHPBB3-11042
This commit is contained in:
parent
e5a3bc03b4
commit
ccb0baa20a
@ -329,7 +329,6 @@ else
|
||||
// sizeof($attachments) >= 1
|
||||
|
||||
phpbb_download_handle_passworded_forum($db, $auth, $attachment['topic_id']);
|
||||
phpbb_increment_downloads($db, $attachment_ids);
|
||||
|
||||
if (!class_exists('compress'))
|
||||
{
|
||||
@ -397,6 +396,7 @@ else
|
||||
}
|
||||
|
||||
$compress->close();
|
||||
phpbb_increment_downloads($db, $attachment_ids);
|
||||
$compress->download($store_name, $archive_name);
|
||||
file_gc();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user