Skip to content

Commit

Permalink
bug 3074: no more than 50 photos per page on Batch Manager, unit mode…
Browse files Browse the repository at this point in the history
… (better fix expected with feature 3106)

git-svn-id: http://piwigo.org/svn/trunk@29349 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Sep 1, 2014
1 parent f29a7f6 commit 27e5977
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 1 addition & 8 deletions admin/batch_manager_unit.php
Expand Up @@ -133,14 +133,7 @@
// 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
{
Expand Down
1 change: 0 additions & 1 deletion admin/themes/default/template/batch_manager_unit.tpl
Expand Up @@ -43,7 +43,6 @@ jQuery("a.preview-box").colorbox();
<a href="{$U_ELEMENTS_PAGE}&amp;display=5">5</a>
| <a href="{$U_ELEMENTS_PAGE}&amp;display=10">10</a>
| <a href="{$U_ELEMENTS_PAGE}&amp;display=50">50</a>
| <a href="{$U_ELEMENTS_PAGE}&amp;display=all">{'all'|@translate}</a>
</p>

</fieldset>
Expand Down

0 comments on commit 27e5977

Please sign in to comment.