diff options
author | plegall <plg@piwigo.org> | 2016-05-10 11:37:35 +0200 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2016-05-10 11:37:35 +0200 |
commit | a684afbdc33fc904734ee63152e3040dbdbaa1bd (patch) | |
tree | 9a907994815f59a53b72beb92ca3b749b3feca80 /picture.php | |
parent | f0d29d9134193be7fe708b6a2f54f80eeb9e77bf (diff) |
fixes #415, even if non-picture file, force download with action.php
Diffstat (limited to '')
-rw-r--r-- | picture.php | 3 |
1 files changed, 2 insertions, 1 deletions
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); } } |