Changeset 25931 for extensions/BatchDownloader/include/functions.inc.php
- Timestamp:
- Dec 12, 2013, 2:12:13 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/BatchDownloader/include/functions.inc.php
r23804 r25931 8 8 function get_set_info_from_page() 9 9 { 10 global $page ;10 global $page, $conf; 11 11 12 12 switch ($page['section']) … … 70 70 ); 71 71 72 return trigger_event('batchdownload_get_set_info', $set); 72 // check size 73 if (!$conf['batch_download']['multisize']) 74 { 75 $set['size'] = $conf['batch_download']['photo_size']; 76 } 77 else 78 { 79 $avail_sizes = array(); 80 foreach (ImageStdParams::get_defined_type_map() as $params) 81 { 82 $avail_sizes[] = $params->type; 83 if ($params->type == $conf['batch_download']['photo_size']) break; 84 } 85 if ($conf['batch_download']['photo_size'] == 'original') 86 { 87 $avail_sizes[] = 'original'; 88 } 89 90 if (!in_array($set['size'], $avail_sizes)) 91 { 92 $set['size'] = $conf['batch_download']['photo_size']; 93 } 94 } 95 96 return trigger_change('batchdownload_get_set_info', $set); 73 97 } 74 98
Note: See TracChangeset
for help on using the changeset viewer.