mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03:00
parent
fe18b49a85
commit
fdefcffe0e
1 changed files with 9 additions and 7 deletions
|
@ -971,12 +971,14 @@ SELECT id, name, permalink
|
|||
}
|
||||
}
|
||||
|
||||
if (str_ends_with(strtolower($picture['current']['file']), "pdf" )) {
|
||||
$template->assign(
|
||||
array(
|
||||
'PDF_VIEWER_FILESIZE_THRESHOLD' => $conf['pdf_viewer_filesize_threshold']*1024,
|
||||
'PDF_NB_PAGES' => count_pdf_pages($picture['current']['path'])
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
// maybe someone wants a special display (call it before page_header so that
|
||||
// they can add stylesheets)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue