diff options
Diffstat (limited to '')
-rw-r--r-- | admin/element_set_unit.php | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/admin/element_set_unit.php b/admin/element_set_unit.php index 9ccbf9346..fbffe99dd 100644 --- a/admin/element_set_unit.php +++ b/admin/element_set_unit.php @@ -157,7 +157,23 @@ $template->assign_vars( // | global mode thumbnails | // +-----------------------------------------------------------------------+ -$page['nb_images'] = !empty($_GET['display']) ? intval($_GET['display']) : 5; +// how many items to display on this page +if (!empty($_GET['display'])) +{ + if ('all' == $_GET['display']) + { + $page['nb_images'] = count($page['cat_elements_id']); + } + else + { + $page['nb_images'] = intval($_GET['display']); + } +} +else +{ + $page['nb_images'] = 5; +} + if (count($page['cat_elements_id']) > 0) |