Ignore:
Timestamp:
Aug 29, 2012, 5:11:53 PM (12 years ago)
Author:
mistic100
Message:

consolidate upgrade process, always use original filenames

Location:
extensions/BatchDownloader/include
Files:
1 added
2 edited

Legend:

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

    r17517 r17656  
    325325      foreach ($images_to_add as $row)
    326326      {       
    327         $zip->addFile(PHPWG_ROOT_PATH . $row['path'], $row['id'].'_'.str2url($row['name']).'.'.get_extension($row['file']));
     327        $zip->addFile(PHPWG_ROOT_PATH . $row['path'], $row['id'].'_'.get_filename_wo_extension($row['file']).'.'.get_extension($row['path']));
    328328       
    329329        array_push($images_added, $row['id']);
  • extensions/BatchDownloader/include/events.inc.php

    r17517 r17656  
    33
    44# this file contains all functions directly called by the triggers #
    5 
    6 /* unserialize conf and load language */
    7 function batch_download_init()
    8 {
    9   global $conf;
    10  
    11   $conf['batch_download'] = unserialize($conf['batch_download']);
    12   load_language('plugin.lang', BATCH_DOWNLOAD_PATH);
    13 }
    14 
    155
    166/* define page section from url */
Note: See TracChangeset for help on using the changeset viewer.