Changeset 16689 for extensions/BatchDownloader/maintain.inc.php
- Timestamp:
- Jul 13, 2012, 12:12:21 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/BatchDownloader/maintain.inc.php
r16400 r16689 9 9 'photo_size' => 'original', 10 10 'archive_prefix' => 'piwigo', 11 'archive_comment' => null,12 11 'archive_timeout' => 48, /* hours */ 13 12 'max_elements' => 500, … … 49 48 50 49 conf_update_param('batch_download', batch_download_default_config); 50 conf_update_param('batch_download_comment', null); 51 51 52 52 mkdir($conf['data_location'] . 'download_archives/', 0755); … … 57 57 global $conf; 58 58 59 if (empty($conf['batch_download ']))59 if (empty($conf['batch_download_comment'])) 60 60 { 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); 62 65 } 63 66
Note: See TracChangeset
for help on using the changeset viewer.