1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01:00

[feature/attach-dl] Moved definition of $archive_name

PHPBB3-11042
This commit is contained in:
Fyorl 2012-08-15 06:04:12 +08:00
parent bf3f381c7c
commit 6376cfe766

View File

@ -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')