Skip to content
Browse files

fixes #10 show the dropdown list even for TIF files

  • Loading branch information
plegall committed Jan 24, 2020
1 parent d941692 commit 70b8aa4655561da9a336ca77ef949452917d18d4
Showing with 8 additions and 1 deletion.
  1. +8 −1
@@ -20,9 +20,16 @@ function dlsize_picture()
global $conf, $template, $picture;

// some non picture files (with a representative) are relevant for multiple
// size download, so let's make exceptions
$permitted_non_picture = array('tif', 'tiff');

// in case of file with a pwg_representative, we simply fallback to the
// standard button (which downloads the original file)
if (!$picture['current']['src_image']->is_original())
if (
and !in_array(strtolower(get_extension($picture['current']['path'])), $permitted_non_picture)

0 comments on commit 70b8aa4

Please sign in to comment.
You can’t perform that action at this time.