Update dl.php

This commit is contained in:
Roman Kelesidis 2023-12-16 13:23:19 +07:00
parent c96e9dcccb
commit c5a1ee95ff

2
dl.php
View File

@ -107,7 +107,7 @@ if (!($attachment = DB()->sql_fetchrow($result)))
$attachment['physical_filename'] = basename($attachment['physical_filename']); $attachment['physical_filename'] = basename($attachment['physical_filename']);
// Re-define download mode for thumbnails // Re-define $attachment['physical_filename'] for thumbnails
if ($thumbnail) if ($thumbnail)
{ {
$attachment['physical_filename'] = THUMB_DIR . '/t_' . $attachment['physical_filename']; $attachment['physical_filename'] = THUMB_DIR . '/t_' . $attachment['physical_filename'];