Ignore:
Timestamp:
Jun 17, 2013, 2:46:12 AM (11 years ago)
Author:
mistic100
Message:

new advanced param $confbatch_download_additional_ext, default is $confpicture_ext

File:
1 edited

Legend:

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

    r23167 r23280  
    44Version: auto
    55Description: Allows users to download pictures sets in ZIP. Compatible with User Collections.
    6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=616
     6Plugin URI: auto
    77Author: Mistic
    88Author URI: http://www.strangeplanet.fr
     
    1111/*
    1212 * advanced config:
    13  * $conf['batch_download_max_elements']  max value of the elements slider (default 1000)
    14  * $conf['batch_download_max_size']      max value of the size slider (default 500)
    15  * $conf['batch_download_force_pclzip']  if true, force the usage of PclZip instead of ZipArchive
    16  * $conf['batch_download_direct']        if true, the download script will redirect to the zip instead of deliver it through PHP
     13 * $conf['batch_download_max_elements']   max value of the elements slider (default 1000)
     14 * $conf['batch_download_max_size']       max value of the size slider (default 500)
     15 * $conf['batch_download_force_pclzip']   if true, force the usage of PclZip instead of ZipArchive
     16 * $conf['batch_download_direct']         if true, the download script will redirect to the zip instead of deliver it through PHP
     17 * $conf['batch_download_additional_ext'] array containing downloadable filetypes (case sensitive), default is $conf['picture_ext']
    1718 */
    1819
     
    9192 
    9293  $conf['batch_download'] = unserialize($conf['batch_download']);
     94  $conf['batch_download']['allowed_ext'] = $conf['picture_ext'];
     95  if (!empty($conf['batch_download_additional_ext']))
     96  {
     97    $conf['batch_download']['allowed_ext'] = array_merge($conf['batch_download']['allowed_ext'], $conf['batch_download_additional_ext']);
     98  }
     99 
    93100  load_language('plugin.lang', BATCH_DOWNLOAD_PATH);
    94101}
Note: See TracChangeset for help on using the changeset viewer.