From a684afbdc33fc904734ee63152e3040dbdbaa1bd Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 10 May 2016 11:37:35 +0200 Subject: fixes #415, even if non-picture file, force download with action.php --- picture.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'picture.php') diff --git a/picture.php b/picture.php index db58c12e7..37d65a1f9 100644 --- a/picture.php +++ b/picture.php @@ -532,7 +532,8 @@ while ($row = pwg_db_fetch_assoc($result)) } else { // not a pic - need download link - $row['download_url'] = $row['element_url'] = get_element_url($row);; + $row['element_url'] = get_element_url($row); + $row['download_url'] = get_action_url($row['id'], 'e', true); } } -- cgit v1.2.3