Ignore:
Timestamp:
Jun 17, 2013, 8:03:39 PM (7 years ago)
Author:
mistic100
Message:

fininalize download page
handle no-image files
correct link error when zips number changes

File:
1 edited

Legend:

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

    r23290 r23291  
    1111  case 'init_zip':
    1212  {
    13     $template->set_filename('index', dirname(__FILE__) . '/../template/init_zip.tpl');
     13    $template->set_filename('index', realpath(BATCH_DOWNLOAD_PATH . 'template/init_zip.tpl'));
    1414   
    1515    try
     
    5555            $template->assign('missing_derivatives', $missing_derivatives);
    5656          }
    57           // set ready
     57          // set is ready
    5858          else
    5959          {
     
    108108    $self_url = add_url_params(BATCH_DOWNLOAD_PUBLIC . 'view', array('set_id'=>$_GET['set_id']));
    109109   
    110     $template->set_filename('index', dirname(__FILE__).'/../template/view.tpl');
     110    $template->set_filename('index', realpath(BATCH_DOWNLOAD_PATH . 'template/view.tpl'));
    111111    $template->assign(array(
    112112      'BATCH_DOWNLOAD_PATH' => BATCH_DOWNLOAD_PATH,
     
    120120      $BatchDownloader = new BatchDownloader($_GET['set_id']);
    121121     
    122       if ($BatchDownloader->getParam('status') != 'new')
     122      if ($BatchDownloader->getParam('status') != 'new' && $BatchDownloader->getParam('status') != 'ready')
    123123      {
    124124        array_push($page['errors'], l10n('You can not edit this set'));
Note: See TracChangeset for help on using the changeset viewer.