mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge pull request #4345 from marc1706/ticket/14291
[ticket/14291] Do not update filesize if displaying thumbnail * marc1706/ticket/14291: [ticket/14291] Do not update filesize if displaying thumbnail
This commit is contained in:
commit
d316927225
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ function send_file_to_browser($attachment, $upload_dir, $category)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure the database record for the filesize is correct
|
// Make sure the database record for the filesize is correct
|
||||||
if ($size > 0 && $size != $attachment['filesize'])
|
if ($size > 0 && $size != $attachment['filesize'] && strpos($attachment['physical_filename'], 'thumb_') === false)
|
||||||
{
|
{
|
||||||
// Update database record
|
// Update database record
|
||||||
$sql = 'UPDATE ' . ATTACHMENTS_TABLE . '
|
$sql = 'UPDATE ' . ATTACHMENTS_TABLE . '
|
||||||
|
|
Loading…
Add table
Reference in a new issue