Ignore:
Timestamp:
Dec 30, 2010, 5:15:26 PM (13 years ago)
Author:
plg
Message:

feature 2089: remove some useless commented code, only "not_linked" and
"duplicates" presets are not available in the new Batch Manager.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager.php

    r8394 r8399  
    194194//  // managed category in $page['cat_elements_id'] array.
    195195//  $page['cat_elements_id'] = array();
    196 //  if (is_numeric($_GET['cat']))
    197 //  {
    198 //    $page['title'] =
    199 //      get_cat_display_name_from_id(
    200 //        $_GET['cat'],
    201 //        PHPWG_ROOT_PATH.'admin.php?page=cat_modify&cat_id=',
    202 //        false
    203 //        );
    204 // 
    205 //    $query = '
    206 //  SELECT image_id
    207 //    FROM '.IMAGE_CATEGORY_TABLE.'
    208 //    WHERE category_id = '.$_GET['cat'].'
    209 //  ;';
    210 //    $page['cat_elements_id'] = array_from_query($query, 'image_id');
    211 //  }
    212 //  else if ('caddie' == $_GET['cat'])
    213 //  {
    214 //    $page['title'] = l10n('caddie');
    215 // 
    216 //    $query = '
    217 //  SELECT element_id
    218 //    FROM '.CADDIE_TABLE.'
    219 //    WHERE user_id = '.$user['id'].'
    220 //  ;';
    221 //    $page['cat_elements_id'] = array_from_query($query, 'element_id');
    222 //  }
     196
    223197//  else if ('not_linked' == $_GET['cat'])
    224198//  {
     
    279253//    $page['cat_elements_id'] = array_from_query($query, 'id');
    280254//  }
    281 //  elseif ('recent'== $_GET['cat'])
    282 //  {
    283 //    $page['title'] = l10n('Recent pictures');
    284 //    $query = 'SELECT MAX(date_available) AS date
    285 //    FROM '.IMAGES_TABLE;
    286 //    $row = pwg_db_fetch_assoc(pwg_query($query));
    287 //    if (!empty($row['date']))
    288 //    {
    289 //      $query = 'SELECT id
    290 //    FROM '.IMAGES_TABLE.'
    291 //    WHERE date_available BETWEEN '.pwg_db_get_recent_period_expression(1, $row['date']).' AND \''.$row['date'].'\'';
    292 //      $page['cat_elements_id'] = array_from_query($query, 'id');
    293 //    }
    294 //  }
    295255
    296256// +-----------------------------------------------------------------------+
Note: See TracChangeset for help on using the changeset viewer.