diff options
author | Andreas Fischer <bantu@phpbb.com> | 2016-06-11 13:45:27 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2016-06-11 13:45:27 +0200 |
commit | d316927225d6fba9764c65756316c60a8d87658f (patch) | |
tree | 9ab24ea14c115f01ddf15c8e45a3f7239d34aa6e | |
parent | cf2b96def75e37697634ce38be85406b19d2dc50 (diff) | |
parent | 72248cab45cb658d53a489791d6ae55fe06f42d3 (diff) | |
download | forums-d316927225d6fba9764c65756316c60a8d87658f.tar forums-d316927225d6fba9764c65756316c60a8d87658f.tar.gz forums-d316927225d6fba9764c65756316c60a8d87658f.tar.bz2 forums-d316927225d6fba9764c65756316c60a8d87658f.tar.xz forums-d316927225d6fba9764c65756316c60a8d87658f.zip |
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
-rw-r--r-- | phpBB/includes/functions_download.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php index 2c5cba2c0d..2c6f62227c 100644 --- a/phpBB/includes/functions_download.php +++ b/phpBB/includes/functions_download.php @@ -166,7 +166,7 @@ function send_file_to_browser($attachment, $upload_dir, $category) } // 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 $sql = 'UPDATE ' . ATTACHMENTS_TABLE . ' |