- Timestamp:
- Jul 27, 2012, 4:44:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/BatchDownloader/include/BatchDownloader.class.php
r16697 r17177 425 425 } 426 426 427 $root_url = get_root_url(); 428 427 429 $out = ''; 428 430 for ($i=1; $i<=$this->data['nb_zip']; $i++) … … 432 434 if ($this->data['status'] == 'done' or $i < $this->data['last_zip']+1) 433 435 { 434 $out.= '<img src="'. BATCH_DOWNLOAD_PATH.'template/drive.png"> Archive #'.$i.' (already downloaded)';436 $out.= '<img src="'.$root_url.BATCH_DOWNLOAD_PATH.'template/drive.png"> Archive #'.$i.' (already downloaded)'; 435 437 } 436 438 else if ($i == $this->data['last_zip']+1) … … 438 440 $out.= '<a href="'.add_url_params($url, array('set_id'=>$this->data['id'],'zip'=>$i)).'" rel="nofollow" style="font-weight:bold;"' 439 441 .($i!=1 ? 'onClick="return confirm(\'Starting download Archive #'.$i.' will destroy Archive #'.($i-1).', be sure you finish the download. Continue ?\');"' : null). 440 '><img src="'. BATCH_DOWNLOAD_PATH.'template/drive_go.png"> Archive #'.$i.' (ready)</a>';442 '><img src="'.$root_url.BATCH_DOWNLOAD_PATH.'template/drive_go.png"> Archive #'.$i.' (ready)</a>'; 441 443 } 442 444 else 443 445 { 444 $out.= '<img src="'. BATCH_DOWNLOAD_PATH.'template/drive.png"> Archive #'.$i.' (pending)';446 $out.= '<img src="'.$root_url.BATCH_DOWNLOAD_PATH.'template/drive.png"> Archive #'.$i.' (pending)'; 445 447 } 446 448 … … 609 611 if (!class_exists('UserCollection')) throw new Exception(); 610 612 $UserCollection = new UserCollection($this->data['type_id']); 611 $set['NAME'] = l10n('Collection').': <a href="'.USER_COLLEC_PUBLIC.'view/'.$UserCollection->getParam('id').'">'.$UserCollection->getParam('name').'</a>'; 613 $infos = $UserCollection->getCollectionInfo(); 614 $set['NAME'] = l10n('Collection').': <a href="'.$infos['U_PUBLIC'].'">'.$UserCollection->getParam('name').'</a>'; 612 615 } 613 616 catch (Exception $e)
Note: See TracChangeset
for help on using the changeset viewer.