Ignore:
Timestamp:
Jul 11, 2012, 3:06:22 PM (12 years ago)
Author:
mistic100
Message:

-add some css for sliders, waiting for Piwigo 2.4.2
-mask photo sizes options
-ZipArchives can't properly use utf-8 filenames, try to sanitize names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/include/BatchDownloader.class.php

    r16609 r16622  
    330330      $total_size = 0;
    331331      foreach ($images_to_add as $row)
    332       {
    333         $zip->addFile(PHPWG_ROOT_PATH . $row['path'], $row['id'].'_'.$row['name'].'.'.get_extension($row['file']));
     332      {       
     333        $zip->addFile(PHPWG_ROOT_PATH . $row['path'], $row['id'].'_'.str2url($row['name']).'.'.get_extension($row['file']));
    334334       
    335335        array_push($images_added, $row['id']);
     
    344344      // archive comment
    345345      global $conf;
    346       $comment = 'Generated on '.date('r').' with PHP ZipArchive '.PHP_VERSION.' by Piwigo Advanced Downloader.';
     346      $comment = 'Generated on '.date('r').' with PHP ZipArchive '.PHP_VERSION.' by Piwigo Batch Downloader.';
    347347      $comment.= "\n".$conf['gallery_title'].' - '.get_absolute_root_url();
    348348      if (!empty($this->conf['archive_comment']))
Note: See TracChangeset for help on using the changeset viewer.