Fixed photo download

This commit is contained in:
Tobias Reich 2014-05-20 12:31:48 +02:00
parent c84572fedf
commit 69aa61cade

View File

@ -528,7 +528,7 @@ class Photo extends Module {
# Set headers # Set headers
header("Content-Type: application/octet-stream"); header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"$photo->title.$extension[0]\""); header("Content-Disposition: attachment; filename=\"" . $photo->title . $extension . "\"");
header("Content-Length: " . filesize(LYCHEE_UPLOADS_BIG . $photo->url)); header("Content-Length: " . filesize(LYCHEE_UPLOADS_BIG . $photo->url));
# Send file # Send file