diff options
| author | Fyorl <gaelreth@gmail.com> | 2012-08-04 15:58:58 +0100 |
|---|---|---|
| committer | Fyorl <gaelreth@gmail.com> | 2012-08-04 15:58:58 +0100 |
| commit | 155b584a68f21d88c5011a3bb3ec9bb118c9c1ca (patch) | |
| tree | 20c0643348d2e63ee82ef3de80c2ac83cc4bb940 /phpBB | |
| parent | aa87258cc6503f4c9b2f64a69614b4e5f2a21da5 (diff) | |
| download | forums-155b584a68f21d88c5011a3bb3ec9bb118c9c1ca.tar forums-155b584a68f21d88c5011a3bb3ec9bb118c9c1ca.tar.gz forums-155b584a68f21d88c5011a3bb3ec9bb118c9c1ca.tar.bz2 forums-155b584a68f21d88c5011a3bb3ec9bb118c9c1ca.tar.xz forums-155b584a68f21d88c5011a3bb3ec9bb118c9c1ca.zip | |
[feature/attach-dl] Only include compress class when needed
PHPBB3-11042
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/download/file.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 28a89b2374..6332095df8 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -132,7 +132,6 @@ if (isset($_GET['avatar'])) // implicit else: we are not in avatar mode include($phpbb_root_path . 'common.' . $phpEx); require($phpbb_root_path . 'includes/functions_download' . '.' . $phpEx); -require($phpbb_root_path . 'includes/functions_compress.' . $phpEx); $download_id = request_var('id', 0); $topic_id = $request->variable('topic_id', 0); @@ -433,6 +432,7 @@ if ($attachment) if ($attachments) { + require_once $phpbb_root_path . 'includes/functions_compress.' . $phpEx; phpbb_increment_downloads($db, $attach_ids); if (!in_array($archive, compress::methods())) |
