From ccb0baa20ab4727a970381f601c5e4740e0bbc8f Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Fri, 10 Aug 2012 03:24:15 +0200 Subject: [PATCH] [feature/attach-dl] Increase download counters closely before streaming archive PHPBB3-11042 --- phpBB/download/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 13494b12f4..c9fcf67101 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -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(); }