Changeset 26645


Ignore:
Timestamp:
Jan 12, 2014, 1:27:20 AM (7 years ago)
Author:
mistic100
Message:

cant' define class properties as computed value (here, time() unexpected)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/maintain.inc.php

    r26642 r26645  
    55{
    66  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     );
    237
    248  function install($plugin_version, &$errors=array())
     
    2913    if (empty($conf['batch_download']))
    3014    {
    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);
    3232      $conf['batch_download_comment'] = null;
    3333
Note: See TracChangeset for help on using the changeset viewer.