mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 20:29:58 +03:00
(cp eeef62378
) Correct way to check file type
This commit is contained in:
parent
fdefcffe0e
commit
34d0b3f788
1 changed files with 1 additions and 1 deletions
|
@ -971,7 +971,7 @@ SELECT id, name, permalink
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (str_ends_with(strtolower($picture['current']['file']), "pdf" )) {
|
if (in_array(strtolower(get_extension($picture['current']['file'])), array('pdf'))) {
|
||||||
$template->assign(
|
$template->assign(
|
||||||
array(
|
array(
|
||||||
'PDF_VIEWER_FILESIZE_THRESHOLD' => $conf['pdf_viewer_filesize_threshold']*1024,
|
'PDF_VIEWER_FILESIZE_THRESHOLD' => $conf['pdf_viewer_filesize_threshold']*1024,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue