mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-10-30 21:52:00 +01:00
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. git-svn-id: http://piwigo.org/svn/trunk@4913 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
1 parent
6ba826eb32
commit
0c4bdbe013
1 file changed
+1
-2
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user