Changeset 23383 for extensions/BatchDownloader/include/install.inc.php
- Timestamp:
- Jun 20, 2013, 2:10:51 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/BatchDownloader/include/install.inc.php
r23290 r23383 13 13 'level' => 0, 14 14 'what' => array('categories','specials','collections'), 15 'photo_size' => 'original', // not used15 'photo_size' => 'original', 16 16 'archive_prefix' => 'piwigo', 17 17 'archive_timeout' => 48, /* hours */ … … 19 19 'max_size' => 100, /* MB */ 20 20 'last_clean' => time(), 21 'one_archive' => false, 22 'force_pclzip' => false, 23 'direct' => false, 21 24 ); 22 25 … … 31 34 $new_conf = is_string($conf['batch_download']) ? unserialize($conf['batch_download']) : $conf['batch_download']; 32 35 33 if ( empty($new_conf['what']))36 if (!isset($new_conf['what'])) 34 37 { 35 38 $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 39 } 40 if (!isset($new_conf['one_archive'])) 41 { 42 $new_conf['one_archive'] = false; 43 $new_conf['force_pclzip'] = isset($conf['batch_download_force_pclzip']) && $conf['batch_download_force_pclzip']; 44 $new_conf['direct'] = isset($conf['batch_download_direct']) && $conf['batch_download_direct']; 45 } 46 47 $conf['batch_download'] = serialize($new_conf); 48 conf_update_param('batch_download', $conf['batch_download']); 40 49 } 41 50
Note: See TracChangeset
for help on using the changeset viewer.