Ignore:
Timestamp:
Jun 29, 2014, 4:17:09 PM (10 years ago)
Author:
mistic100
Message:

use new maintain class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/include/BatchDownloader.class.php

    r28627 r28834  
    524524        else
    525525        {
    526           $src_image = new SrcImage($row); // don't give representive_ext
     526          $src_image = new SrcImage($row); // don't give representative_ext
    527527
    528528          // no-image files
     
    536536          {
    537537            $derivative = new DerivativeImage($this->data['size'], $src_image);
     538           
     539            if (!file_exists($derivative->get_path()))
     540            {
     541              // we shouldn't be here
     542              // TODO : generate missing derivative (if generation where not performed) or remove
     543            }
    538544
    539545            $zip->addFile($derivative->get_path(), $this->getFilename($row, $filesizes[ $row['id'] ]));
     
    577583      {
    578584        if ($this->conf['one_archive']) $this->updateParam('status', 'done');
    579         $done = true;
    580585
    581586        // over estimed
    582587        $this->updateParam('nb_zip', $this->data['last_zip']);
    583588      }
    584 
    585589      // under estimed
    586       if (!isset($done) && $this->data['status'] != 'done' && $this->data['last_zip'] == $this->data['nb_zip'])
     590      else if ($this->data['status'] != 'done' && $this->data['last_zip'] == $this->data['nb_zip'])
    587591      {
    588592        $this->updateParam('nb_zip', $this->data['last_zip']+1);
Note: See TracChangeset for help on using the changeset viewer.