From 6376cfe76604ebaab62f80dbddfc677d298a2f05 Mon Sep 17 00:00:00 2001 From: Fyorl Date: Wed, 15 Aug 2012 06:04:12 +0800 Subject: [PATCH] [feature/attach-dl] Moved definition of $archive_name 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 2ee77926ed..8643ae9e28 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -353,9 +353,9 @@ else $clean_name = phpbb_download_clean_filename($row['attach_subject']); $suffix = '_' . (($post_id) ? $post_id : $topic_id) . '_' . $clean_name; + $archive_name = 'attachments' . $suffix; $store_name = 'att_' . time() . '_' . unique_id(); - $archive_name = 'attachments' . $suffix; $archive_path = "{$phpbb_root_path}store/{$store_name}{$archive}"; if ($archive === '.zip')