Changeset 26645 for extensions/BatchDownloader/maintain.inc.php
- Timestamp:
- Jan 12, 2014, 1:27:20 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/BatchDownloader/maintain.inc.php
r26642 r26645 5 5 { 6 6 private $installed = false; 7 8 private $default_conf = array(9 'groups' => array(),10 'level' => 0,11 'what' => array('categories','specials','collections'),12 'photo_size' => 'original',13 'multisize' => true,14 'archive_prefix' => 'piwigo',15 'archive_timeout' => 48, /* hours */16 'max_elements' => 500,17 'max_size' => 100, /* MB */18 'last_clean' => time(),19 'one_archive' => false,20 'force_pclzip' => false,21 'direct' => false,22 );23 7 24 8 function install($plugin_version, &$errors=array()) … … 29 13 if (empty($conf['batch_download'])) 30 14 { 31 $conf['batch_download'] = serialize($this->default_config); 15 $batch_download_default_config = array( 16 'groups' => array(), 17 'level' => 0, 18 'what' => array('categories','specials','collections'), 19 'photo_size' => 'original', 20 'multisize' => true, 21 'archive_prefix' => 'piwigo', 22 'archive_timeout' => 48, /* hours */ 23 'max_elements' => 500, 24 'max_size' => 100, /* MB */ 25 'last_clean' => time(), 26 'one_archive' => false, 27 'force_pclzip' => false, 28 'direct' => false, 29 ); 30 31 $conf['batch_download'] = serialize($batch_download_default_config); 32 32 $conf['batch_download_comment'] = null; 33 33
Note: See TracChangeset
for help on using the changeset viewer.