Ignore:
Timestamp:
Jul 6, 2012, 4:40:28 PM (12 years ago)
Author:
mistic100
Message:
  • display creation date
  • improve set titles for Tags and Calendar
  • add Download history admin page

TODO : User Selection, localization, change archive name to more user-friendly one in the Force-Download

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/include/events.inc.php

    r16392 r16400  
    7373      $BatchDownloader->getEstimatedArchiveNumber();
    7474     
     75      // if we plan only one zip with less elements than 'max_elements', the download starts immediately
    7576      if (
    7677        $BatchDownloader->getParam('nb_images') <= $conf['batch_download']['max_elements']
     
    7879      )
    7980      {
    80         $BatchDownloader->createNextArchive(true);
     81        $BatchDownloader->createNextArchive(true); // make sure we have only one zip, even if 'max_size' is exceeded
    8182       
    8283        $u_download = BATCH_DOWNLOAD_PATH . 'download.php?set_id='.$BatchDownloader->getParam('set_id').'&amp;zip=1';
     
    8788        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));
    8889      }
     90      // oterwise we go to summary page
    8991      else
    9092      {
     
    190192    $BatchDownloader = new BatchDownloader($set_id);
    191193    $BatchDownloader->deleteLastArchive();
    192     $BatchDownloader->clear(false);
     194    $BatchDownloader->clearImages();
    193195    $BatchDownloader->updateParam('status', 'done');
    194196  }
Note: See TracChangeset for help on using the changeset viewer.