Ignore:
Timestamp:
04/18/13 12:12:27 (7 years ago)
Author:
ddtddt
Message:

[extensions] - batch_manager_prefilters - Checked compatibility with Piwigo 2.5 / delete filter HD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/batch_manager_prefilters/main.inc.php

    r11258 r22278  
    2121  array_push($prefilters, 
    2222    array('ID' => 'with tags', 'NAME' => l10n('with tags')), 
    23     array('ID' => 'with HD', 'NAME' => l10n('with HD')), 
    24     array('ID' => 'without HD', 'NAME' => l10n('without HD')), 
    2523    array('ID' => 'with author', 'NAME' => l10n('with author')), 
    2624    array('ID' => 'without author', 'NAME' => l10n('without author')) 
     
    3634    $query = 'SELECT DISTINCT image_id FROM '.IMAGE_TAG_TABLE.';'; 
    3735    array_push($filter_sets, array_from_query($query, 'image_id')); 
    38   } 
    39  
    40   if ('with HD' == $prefilter) 
    41   { 
    42     $query = 'SELECT id FROM '.IMAGES_TABLE.' WHERE has_high IS NOT NULL;'; 
    43     array_push($filter_sets, array_from_query($query, 'id')); 
    44   } 
    45  
    46   if ('without HD' == $prefilter) 
    47   { 
    48     $query = 'SELECT id FROM '.IMAGES_TABLE.' WHERE has_high IS NULL;'; 
    49     array_push($filter_sets, array_from_query($query, 'id')); 
    5036  } 
    5137 
Note: See TracChangeset for help on using the changeset viewer.