Changeset 16400 for extensions/BatchDownloader/include/events.inc.php
- Timestamp:
- Jul 6, 2012, 4:40:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/BatchDownloader/include/events.inc.php
r16392 r16400 73 73 $BatchDownloader->getEstimatedArchiveNumber(); 74 74 75 // if we plan only one zip with less elements than 'max_elements', the download starts immediately 75 76 if ( 76 77 $BatchDownloader->getParam('nb_images') <= $conf['batch_download']['max_elements'] … … 78 79 ) 79 80 { 80 $BatchDownloader->createNextArchive(true); 81 $BatchDownloader->createNextArchive(true); // make sure we have only one zip, even if 'max_size' is exceeded 81 82 82 83 $u_download = BATCH_DOWNLOAD_PATH . 'download.php?set_id='.$BatchDownloader->getParam('set_id').'&zip=1'; … … 87 88 array_push($page['infos'], sprintf(l10n('The archive is downloading, if the download doesn\'t start automatically please <a href="%s">click here</a>'), $u_download)); 88 89 } 90 // oterwise we go to summary page 89 91 else 90 92 { … … 190 192 $BatchDownloader = new BatchDownloader($set_id); 191 193 $BatchDownloader->deleteLastArchive(); 192 $BatchDownloader->clear (false);194 $BatchDownloader->clearImages(); 193 195 $BatchDownloader->updateParam('status', 'done'); 194 196 }
Note: See TracChangeset
for help on using the changeset viewer.