diff options
author | rvelices <rv-github@modusoptimus.com> | 2012-08-01 16:59:06 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2012-08-01 16:59:06 +0000 |
commit | 4eb43c14060d0c70b7b199cc81193537309611b5 (patch) | |
tree | fb61740b4eb7a2a25b86427bcaf21d001a4abdda /admin/batch_manager.php | |
parent | eae8b9c05184582c1f651cfd14f2161e11b6514e (diff) |
batch manager improvements/fixes:
- when refreshing photo set, start is set to 0 (otherwise if the new set is smaller that start, it looks like it is empty)
- correct positioning of thumbnails (width/height) is done in template instead of javascript (immediate instead on ready + no reflows)
- less space lost on batch manager page
- fix wrong page title in batch manager because of global variable $title overriden
- fix language keys in element_set_ranks (capital/lowercase issue)
git-svn-id: http://piwigo.org/svn/trunk@17289 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/batch_manager.php')
-rw-r--r-- | admin/batch_manager.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/admin/batch_manager.php b/admin/batch_manager.php index 113d4c629..7869e4cc2 100644 --- a/admin/batch_manager.php +++ b/admin/batch_manager.php @@ -50,7 +50,7 @@ check_input_parameter('selection', $_POST, true, PATTERN_ID); if (isset($_POST['submitFilter'])) { // echo '<pre>'; print_r($_POST); echo '</pre>'; - + unset($_REQUEST['start']); // new photo set must reset the page $_SESSION['bulk_manager_filter'] = array(); if (isset($_POST['filter_prefilter_use'])) @@ -335,16 +335,16 @@ $page['cat_elements_id'] = $current_set; // category. For exampe, $page['start'] = 12 means we must show elements #12 // and $page['nb_images'] next elements -if (!isset($_GET['start']) - or !is_numeric($_GET['start']) - or $_GET['start'] < 0 - or (isset($_GET['display']) and 'all' == $_GET['display'])) +if (!isset($_REQUEST['start']) + or !is_numeric($_REQUEST['start']) + or $_REQUEST['start'] < 0 + or (isset($_REQUEST['display']) and 'all' == $_REQUEST['display'])) { $page['start'] = 0; } else { - $page['start'] = $_GET['start']; + $page['start'] = $_REQUEST['start']; } // +-----------------------------------------------------------------------+ |