aboutsummaryrefslogtreecommitdiffstats
path: root/action.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-02-19 09:46:19 +0000
committerplegall <plg@piwigo.org>2010-02-19 09:46:19 +0000
commit64c3d86cba8ffd01b8e9a7a3c8921831632e113e (patch)
tree8b2ca27020c0a723ce292b154acb4eab3e881444 /action.php
parentc36a3d5adc899f866a66ab7fe8740c67df8bc12e (diff)
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. git-svn-id: http://piwigo.org/svn/branches/2.0@4912 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--action.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/action.php b/action.php
index 99f370b41..37120c82f 100644
--- a/action.php
+++ b/action.php
@@ -177,8 +177,7 @@ $http_headers[] = 'Content-Type: '.$ctype;
if (!isset($_GET['view']))
{
- $http_headers[] = 'Content-Disposition: attachment; filename="'
- .basename($file).'";';
+ $http_headers[] = 'Content-Disposition: attachment; filename="'.$element_info['file'].'";';
$http_headers[] = 'Content-Transfer-Encoding: binary';
}
else