mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 16:35:35 +02:00
[feature/attach-dl] Moved definition of $archive_name
PHPBB3-11042
This commit is contained in:
@ -353,9 +353,9 @@ else
|
|||||||
|
|
||||||
$clean_name = phpbb_download_clean_filename($row['attach_subject']);
|
$clean_name = phpbb_download_clean_filename($row['attach_subject']);
|
||||||
$suffix = '_' . (($post_id) ? $post_id : $topic_id) . '_' . $clean_name;
|
$suffix = '_' . (($post_id) ? $post_id : $topic_id) . '_' . $clean_name;
|
||||||
|
$archive_name = 'attachments' . $suffix;
|
||||||
|
|
||||||
$store_name = 'att_' . time() . '_' . unique_id();
|
$store_name = 'att_' . time() . '_' . unique_id();
|
||||||
$archive_name = 'attachments' . $suffix;
|
|
||||||
$archive_path = "{$phpbb_root_path}store/{$store_name}{$archive}";
|
$archive_path = "{$phpbb_root_path}store/{$store_name}{$archive}";
|
||||||
|
|
||||||
if ($archive === '.zip')
|
if ($archive === '.zip')
|
||||||
|
Reference in New Issue
Block a user