Ignore:
Timestamp:
Jun 27, 2013, 3:30:48 PM (11 years ago)
Author:
plg
Message:

ability to set a pattern for filename on download

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/download_by_size/action.php

    r23324 r23590  
    131131
    132132      // change the name of the file for download, suffix with _widthxheight before the extension
    133       $basename = get_filename_wo_extension($element_info['file']);
    134       $extension = get_extension($element_info['file']);
    135       $element_info['file'] = $basename.'_'.$size[0].'x'.$size[1].'.'.$extension;
     133      $element_info['file'] = dlsize_getFilename(
     134        $element_info,
     135        array(
     136          'width'=>$size[0],
     137          'height'=>$size[1]
     138          )
     139        );
    136140    }
    137141    else
Note: See TracChangeset for help on using the changeset viewer.