aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-08-10 03:24:15 +0200
committerAndreas Fischer <bantu@phpbb.com>2012-08-10 03:24:15 +0200
commitccb0baa20ab4727a970381f601c5e4740e0bbc8f (patch)
tree8a7c57ca5fade5560efd82b2d4c9f409251fa92e /phpBB/download
parente5a3bc03b492a573291e2a241b1ed9bcffc19a02 (diff)
downloadforums-ccb0baa20ab4727a970381f601c5e4740e0bbc8f.tar
forums-ccb0baa20ab4727a970381f601c5e4740e0bbc8f.tar.gz
forums-ccb0baa20ab4727a970381f601c5e4740e0bbc8f.tar.bz2
forums-ccb0baa20ab4727a970381f601c5e4740e0bbc8f.tar.xz
forums-ccb0baa20ab4727a970381f601c5e4740e0bbc8f.zip
[feature/attach-dl] Increase download counters closely before streaming archive
PHPBB3-11042
Diffstat (limited to 'phpBB/download')
-rw-r--r--phpBB/download/file.php2
1 files changed, 1 insertions, 1 deletions
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();
}