mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-03 20:12:44 +02:00
committed by
Pierrick Le Gall
parent
a36a0aca8c
commit
cdd4d3d2b3
16
picture.php
16
picture.php
@@ -971,12 +971,14 @@ SELECT id, name, permalink
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$template->assign(
|
if (str_ends_with(strtolower($picture['current']['file']), "pdf" )) {
|
||||||
array(
|
$template->assign(
|
||||||
'PDF_VIEWER_FILESIZE_THRESHOLD' => $conf['pdf_viewer_filesize_threshold']*1024,
|
array(
|
||||||
'PDF_NB_PAGES' => count_pdf_pages($picture['current']['path'])
|
'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
|
// maybe someone wants a special display (call it before page_header so that
|
||||||
// they can add stylesheets)
|
// they can add stylesheets)
|
||||||
@@ -1044,4 +1046,4 @@ else
|
|||||||
//------------------------------------------------------------ log informations
|
//------------------------------------------------------------ log informations
|
||||||
pwg_log($picture['current']['id'], 'picture');
|
pwg_log($picture['current']['id'], 'picture');
|
||||||
include(PHPWG_ROOT_PATH.'include/page_tail.php');
|
include(PHPWG_ROOT_PATH.'include/page_tail.php');
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user