diff options
Diffstat (limited to '')
-rw-r--r-- | admin/batch_manager_unit.php | 9 | ||||
-rw-r--r-- | admin/themes/default/template/batch_manager_unit.tpl | 1 |
2 files changed, 1 insertions, 9 deletions
diff --git a/admin/batch_manager_unit.php b/admin/batch_manager_unit.php index f121126dd..bed0cdc1c 100644 --- a/admin/batch_manager_unit.php +++ b/admin/batch_manager_unit.php @@ -133,14 +133,7 @@ $template->assign( // 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']); - } + $page['nb_images'] = intval($_GET['display']); } else { diff --git a/admin/themes/default/template/batch_manager_unit.tpl b/admin/themes/default/template/batch_manager_unit.tpl index 18671242b..ccb7ca152 100644 --- a/admin/themes/default/template/batch_manager_unit.tpl +++ b/admin/themes/default/template/batch_manager_unit.tpl @@ -43,7 +43,6 @@ jQuery("a.preview-box").colorbox(); <a href="{$U_ELEMENTS_PAGE}&display=5">5</a> | <a href="{$U_ELEMENTS_PAGE}&display=10">10</a> | <a href="{$U_ELEMENTS_PAGE}&display=50">50</a> - | <a href="{$U_ELEMENTS_PAGE}&display=all">{'all'|@translate}</a> </p> </fieldset> |