fixes #1770 no specific need to detect TIFF files

This commit is contained in:
plegall 2022-10-29 16:21:32 +02:00
parent f7e44cc14e
commit b04befd2b4

View file

@ -161,7 +161,6 @@ function add_uploaded_file($source_filepath, $original_filename=null, $categorie
}
$file_path = null;
$is_tiff = false;
if (isset($image_id))
{
@ -218,11 +217,6 @@ SELECT
{
$file_path.= 'gif';
}
elseif (IMAGETYPE_TIFF_MM == $type or IMAGETYPE_TIFF_II == $type)
{
$is_tiff = true;
$file_path.= 'tif';
}
elseif (IMAGETYPE_JPEG == $type)
{
$file_path.= 'jpg';