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/maintain.inc.php

    r16400 r16689  
    99    'photo_size'      => 'original',
    1010    'archive_prefix'  => 'piwigo',
    11     'archive_comment' => null,
    1211    'archive_timeout' => 48, /* hours */
    1312    'max_elements'    => 500,
     
    4948
    5049  conf_update_param('batch_download', batch_download_default_config);
     50  conf_update_param('batch_download_comment', null);
    5151 
    5252  mkdir($conf['data_location'] . 'download_archives/', 0755);
     
    5757  global $conf;
    5858
    59   if (empty($conf['batch_download']))
     59  if (empty($conf['batch_download_comment']))
    6060  {
    61     conf_update_param('batch_download', batch_download_default_config);
     61    $new_conf = unserialize($conf['batch_download']);
     62    unset($new_conf['archive_comment']);
     63    conf_update_param('batch_download', serialize($new_conf));
     64    conf_update_param('batch_download_comment', null);
    6265  }
    6366 
Note: See TracChangeset for help on using the changeset viewer.