Changeset 29505 for trunk/admin/batch_manager.php
- Timestamp:
- Sep 12, 2014, 1:35:32 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/batch_manager.php
r29481 r29505 176 176 foreach ($_GET['filter'] as $filter) 177 177 { 178 list($type, $value) = explode('-', $filter );178 list($type, $value) = explode('-', $filter, 2); 179 179 180 180 switch ($type) … … 184 184 break; 185 185 186 case 'album': 186 case 'album': case 'category': case 'cat': 187 187 if (is_numeric($value)) 188 188 { … … 205 205 } 206 206 break; 207 207 208 208 case 'search': 209 209 $_SESSION['bulk_manager_filter']['search']['q'] = $value; 210 break; 211 212 case 'dimension': 213 $dim_map = array('w'=>'width','h'=>'height','r'=>'ratio'); 214 foreach (explode('-', $value) as $part) 215 { 216 $values = explode('..', substr($part, 1)); 217 if (isset($dim_map[$part[0]])) 218 { 219 $type = $dim_map[$part[0]]; 220 list( 221 $_SESSION['bulk_manager_filter']['dimension']['min_'.$type], 222 $_SESSION['bulk_manager_filter']['dimension']['max_'.$type] 223 ) = $values; 224 } 225 } 226 break; 227 228 case 'filesize': 229 list( 230 $_SESSION['bulk_manager_filter']['filesize']['min'], 231 $_SESSION['bulk_manager_filter']['filesize']['max'] 232 ) = explode('..', $value); 233 break; 234 235 default: 236 $_SESSION['bulk_manager_filter'] = trigger_change('batch_manager_url_filter', 237 $_SESSION['bulk_manager_filter'], $type, $value); 210 238 break; 211 239 }
Note: See TracChangeset
for help on using the changeset viewer.