From 2ca0da39fbf476dd144dba440f94f1ffb045f117 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 30 Dec 2010 16:15:26 +0000 Subject: feature 2089: remove some useless commented code, only "not_linked" and "duplicates" presets are not available in the new Batch Manager. git-svn-id: http://piwigo.org/svn/trunk@8399 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/batch_manager.php | 42 +----------------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) (limited to 'admin/batch_manager.php') diff --git a/admin/batch_manager.php b/admin/batch_manager.php index 3fe4c3ce4..123304a8c 100644 --- a/admin/batch_manager.php +++ b/admin/batch_manager.php @@ -193,33 +193,7 @@ $page['cat_elements_id'] = $current_set; // // To element_set_(global|unit).php, we must provide the elements id of the // // managed category in $page['cat_elements_id'] array. // $page['cat_elements_id'] = array(); -// if (is_numeric($_GET['cat'])) -// { -// $page['title'] = -// get_cat_display_name_from_id( -// $_GET['cat'], -// PHPWG_ROOT_PATH.'admin.php?page=cat_modify&cat_id=', -// false -// ); -// -// $query = ' -// SELECT image_id -// FROM '.IMAGE_CATEGORY_TABLE.' -// WHERE category_id = '.$_GET['cat'].' -// ;'; -// $page['cat_elements_id'] = array_from_query($query, 'image_id'); -// } -// else if ('caddie' == $_GET['cat']) -// { -// $page['title'] = l10n('caddie'); -// -// $query = ' -// SELECT element_id -// FROM '.CADDIE_TABLE.' -// WHERE user_id = '.$user['id'].' -// ;'; -// $page['cat_elements_id'] = array_from_query($query, 'element_id'); -// } + // else if ('not_linked' == $_GET['cat']) // { // $page['title'] = l10n('Not linked elements'); @@ -278,20 +252,6 @@ $page['cat_elements_id'] = $current_set; // // $page['cat_elements_id'] = array_from_query($query, 'id'); // } -// elseif ('recent'== $_GET['cat']) -// { -// $page['title'] = l10n('Recent pictures'); -// $query = 'SELECT MAX(date_available) AS date -// FROM '.IMAGES_TABLE; -// $row = pwg_db_fetch_assoc(pwg_query($query)); -// if (!empty($row['date'])) -// { -// $query = 'SELECT id -// FROM '.IMAGES_TABLE.' -// WHERE date_available BETWEEN '.pwg_db_get_recent_period_expression(1, $row['date']).' AND \''.$row['date'].'\''; -// $page['cat_elements_id'] = array_from_query($query, 'id'); -// } -// } // +-----------------------------------------------------------------------+ // | first element to display | -- cgit v1.2.3