Changeset 16689 for extensions/BatchDownloader/include/events.inc.php
- Timestamp:
- Jul 13, 2012, 12:12:21 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/BatchDownloader/include/events.inc.php
r16609 r16689 81 81 $BatchDownloader->createNextArchive(true); // make sure we have only one zip, even if 'max_size' is exceeded 82 82 83 $u_download = BATCH_DOWNLOAD_PATH . 'download.php?set_id='.$BatchDownloader->getParam(' set_id').'&zip=1';83 $u_download = BATCH_DOWNLOAD_PATH . 'download.php?set_id='.$BatchDownloader->getParam('id').'&zip=1'; 84 84 85 85 $null = null; … … 91 91 else 92 92 { 93 redirect(BATCH_DOWNLOAD_PUBLIC . 'init_zip&set_id='.$BatchDownloader->getParam(' set_id'));93 redirect(BATCH_DOWNLOAD_PUBLIC . 'init_zip&set_id='.$BatchDownloader->getParam('id')); 94 94 } 95 95 } … … 106 106 107 107 // toolbar button 108 $button = '<li><a href="'. $url .'&action=advdown_set" title="'.l10n('Download all pictures of this selection').'" class="pwg-state-default pwg-button" rel="nofollow"> 109 <span class="pwg-icon" style="background:url(\'' . BATCH_DOWNLOAD_PATH . 'template/zip.png\') center center no-repeat;"> </span><span class="pwg-button-text">'.l10n('Batch Downloader').'</span> 108 $button = '<li><a href="'. $url .'&action=advdown_set" title="'.l10n('Download all pictures of this selection').'" class="pwg-state-default pwg-button" rel="nofollow" 109 onClick="return confirm(\''.sprintf(l10n('Confirm the download of %d pictures?'), count($page['items'])).'\');"> 110 <span class="pwg-icon batch-downloader-icon" style="background:url(\'' . BATCH_DOWNLOAD_PATH . 'template/zip.png\') center center no-repeat;"> </span><span class="pwg-button-text">'.l10n('Batch Downloader').'</span> 110 111 </a></li>'; 111 112 $template->concat('PLUGIN_INDEX_ACTIONS', $button); … … 163 164 164 165 array_push($data, array( 165 'URL' => BATCH_DOWNLOAD_PUBLIC . 'init_zip&set_id='.$BatchDownloader->getParam(' set_id'),166 'URL' => BATCH_DOWNLOAD_PUBLIC . 'init_zip&set_id='.$BatchDownloader->getParam('id'), 166 167 'TITLE' => str_replace('"', "'", strip_tags($set['COMMENT'])), 167 168 'NAME' => $set['sNAME'],
Note: See TracChangeset
for help on using the changeset viewer.