- Timestamp:
- Jun 29, 2014, 4:17:09 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/BatchDownloader/include/BatchDownloader.class.php
r28627 r28834 524 524 else 525 525 { 526 $src_image = new SrcImage($row); // don't give represent ive_ext526 $src_image = new SrcImage($row); // don't give representative_ext 527 527 528 528 // no-image files … … 536 536 { 537 537 $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 } 538 544 539 545 $zip->addFile($derivative->get_path(), $this->getFilename($row, $filesizes[ $row['id'] ])); … … 577 583 { 578 584 if ($this->conf['one_archive']) $this->updateParam('status', 'done'); 579 $done = true;580 585 581 586 // over estimed 582 587 $this->updateParam('nb_zip', $this->data['last_zip']); 583 588 } 584 585 589 // 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']) 587 591 { 588 592 $this->updateParam('nb_zip', $this->data['last_zip']+1);
Note: See TracChangeset
for help on using the changeset viewer.