Changeset 4913


Ignore:
Timestamp:
02/19/10 10:46:42 (10 years ago)
Author:
plg
Message:

merge r4912 from branch 2.0 to trunk

feature 967: when clicking on the download link (only for high definition
currently), use images.file instead of basename(images.path) as download file
name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/action.php

    r4325 r4913  
    178178if (!isset($_GET['view'])) 
    179179{ 
    180   $http_headers[] = 'Content-Disposition: attachment; filename="' 
    181             .basename($file).'";'; 
     180  $http_headers[] = 'Content-Disposition: attachment; filename="'.$element_info['file'].'";'; 
    182181  $http_headers[] = 'Content-Transfer-Encoding: binary'; 
    183182} 
Note: See TracChangeset for help on using the changeset viewer.