Ignore:
Timestamp:
Jul 13, 2012, 12:12:21 PM (12 years ago)
Author:
mistic100
Message:

-separate "archive_comment" in a new config parameter
-confirmation message before start download

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/admin/config.php

    r16392 r16689  
    99    'photo_size'      => $_POST['photo_size'],
    1010    'archive_prefix'  => trim($_POST['archive_prefix']),
    11     'archive_comment' => trim($_POST['archive_comment']),
    1211    'archive_timeout' => intval($_POST['archive_timeout']),
    1312    'max_elements'    => intval($_POST['max_elements']),
     
    1514    'last_clean'      => $conf['batch_download']['last_clean'],
    1615    );
     16  $conf['batch_download_comment'] = trim($_POST['archive_comment']);
    1717 
    1818  conf_update_param('batch_download', serialize($conf['batch_download']));
     19  conf_update_param('batch_download_comment', $conf['batch_download_comment']);
    1920}
    2021
     
    4344// max values
    4445$conf['batch_download']['max_elements_value'] = isset($conf['batch_download_max_elements']) ? $conf['batch_download_max_elements'] : 1000;
    45 $conf['batch_download']['max_size_value'] = isset($conf['batch_download_max_size']) ? $conf['batch_download_max_size'] : 1000;
     46$conf['batch_download']['max_size_value'] = isset($conf['batch_download_max_size']) ? $conf['batch_download_max_size'] : 500;
    4647
    4748$template->assign(array(
     
    5051  'sizes_options' => $sizes_options,
    5152  'batch_download' => $conf['batch_download'],
     53  'batch_download_comment' => stripslashes($conf['batch_download_comment']),
    5254  ));
    5355
Note: See TracChangeset for help on using the changeset viewer.