Changeset 21422 for extensions/BatchDownloader/include/install.inc.php
- Timestamp:
- Mar 9, 2013, 11:06:35 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/BatchDownloader/include/install.inc.php
r19837 r21422 9 9 if (empty($conf['batch_download'])) 10 10 { 11 $batch_download_default_config = serialize(array(11 $batch_download_default_config = array( 12 12 'groups' => array(), 13 13 'level' => 0, 14 'what' => array('categories','specials','collections'), 14 15 'photo_size' => 'original', 15 16 'archive_prefix' => 'piwigo', … … 18 19 'max_size' => 100, /* MB */ 19 20 'last_clean' => time(), 20 )); 21 ); 22 23 $conf['batch_download'] = serialize($batch_download_default_config); 24 $conf['batch_download_comment'] = null; 21 25 22 conf_update_param('batch_download', $batch_download_default_config); 23 conf_update_param('batch_download_comment', null); 26 conf_update_param('batch_download', $conf['batch_download']); 27 conf_update_param('batch_download_comment', $conf['batch_download_comment']); 28 } 29 else 30 { 31 $new_conf = is_string($conf['batch_download']) ? unserialize($conf['batch_download']) : $conf['batch_download']; 24 32 25 $conf['batch_download'] = $batch_download_default_config; 26 $conf['batch_download_comment'] = null; 33 if (empty($new_conf['what'])) 34 { 35 $new_conf['what'] = array('categories','specials','collections'); 36 37 $conf['batch_download'] = serialize($new_conf); 38 conf_update_param('batch_download', $conf['batch_download']); 39 } 27 40 } 28 41
Note: See TracChangeset
for help on using the changeset viewer.