mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
fixes #224, batch manager, ability to configure default number of images per page
This commit is contained in:
parent
9f7363f12c
commit
1a348ab30b
3 changed files with 17 additions and 1 deletions
|
@ -135,6 +135,10 @@ if (!empty($_GET['display']))
|
|||
{
|
||||
$page['nb_images'] = intval($_GET['display']);
|
||||
}
|
||||
elseif (in_array($conf['batch_manager_images_per_page_unit'], array(5, 10, 50)))
|
||||
{
|
||||
$page['nb_images'] = $conf['batch_manager_images_per_page_unit'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$page['nb_images'] = 5;
|
||||
|
@ -254,4 +258,4 @@ trigger_notify('loc_end_element_set_unit');
|
|||
// +-----------------------------------------------------------------------+
|
||||
|
||||
$template->assign_var_from_handle('ADMIN_CONTENT', 'batch_manager_unit');
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue