Changeset 17177 for extensions/BatchDownloader/include/download.inc.php
- Timestamp:
- Jul 27, 2012, 4:44:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/BatchDownloader/include/download.inc.php
r16626 r17177 23 23 pwg_query('DELETE FROM '.BATCH_DOWNLOAD_TSETS.' WHERE id = '.$_GET['set_id'].';'); 24 24 $_SESSION['page_infos'][] = l10n('Download set deleted'); 25 redirect( 'index.php');25 redirect(get_root_url()); 26 26 } 27 27 … … 36 36 if (isset($next_file)) 37 37 { 38 $set['U_DOWNLOAD'] = BATCH_DOWNLOAD_PATH . 'download.php?set_id='.$_GET['set_id'].'&zip='.$_GET['zip'];38 $set['U_DOWNLOAD'] = get_root_url().BATCH_DOWNLOAD_PATH . 'download.php?set_id='.$_GET['set_id'].'&zip='.$_GET['zip']; 39 39 array_push($page['infos'], sprintf(l10n('The archive is downloading, if the download doesn\'t start automatically please <a href="%s">click here</a>'), $set['U_DOWNLOAD'])); 40 40 } … … 42 42 if ($BatchDownloader->getParam('status') == 'new' and $BatchDownloader->getParam('nb_images') > 0) 43 43 { 44 $set['U_EDIT_SET'] = BATCH_DOWNLOAD_PUBLIC . 'view&set_id='.$_GET['set_id'];44 $set['U_EDIT_SET'] = add_url_params(BATCH_DOWNLOAD_PUBLIC . 'view', array('set_id'=>$_GET['set_id'])); 45 45 } 46 46 … … 55 55 } 56 56 57 $set['U_CANCEL'] = BATCH_DOWNLOAD_PUBLIC . 'init_zip&set_id='.$_GET['set_id'].'&cancel';57 $set['U_CANCEL'] = add_url_params(BATCH_DOWNLOAD_PUBLIC . 'init_zip', array('set_id'=>$_GET['set_id'], 'cancel'=>'true')); 58 58 59 59 $template->assign(array( … … 73 73 case 'view': 74 74 { 75 $self_url = BATCH_DOWNLOAD_PUBLIC . 'view&set_id='.$_GET['set_id'];75 $self_url = add_url_params(BATCH_DOWNLOAD_PUBLIC . 'view', array('set_id'=>$_GET['set_id'])); 76 76 77 77 $template->set_filename('index', dirname(__FILE__).'/../template/view.tpl'); … … 79 79 'BATCH_DOWNLOAD_PATH' => BATCH_DOWNLOAD_PATH, 80 80 'U_VIEW' => $self_url, 81 'U_INIT_ZIP' => BATCH_DOWNLOAD_PUBLIC . 'init_zip&set_id='.$_GET['set_id'],81 'U_INIT_ZIP' => add_url_params(BATCH_DOWNLOAD_PUBLIC . 'init_zip', array('set_id'=>$_GET['set_id'])), 82 82 'SET_ID' => $_GET['set_id'], 83 83 )); … … 137 137 $replace = $search.' 138 138 {strip}<a class="removeSet" href="{$U_VIEW}&remove={$thumbnail.id}" data-id="{$thumbnail.id}" rel="nofollow"> 139 {\'Remove from download set\'|@translate} <img src="{$ BATCH_DOWNLOAD_PATH}template/image_delete.png" title="{\'Remove from download set\'|@translate}">139 {\'Remove from download set\'|@translate} <img src="{$ROOT_URL}{$BATCH_DOWNLOAD_PATH}template/image_delete.png" title="{\'Remove from download set\'|@translate}"> 140 140 </a>{/strip}'; 141 141
Note: See TracChangeset
for help on using the changeset viewer.