fixes #415, even if non-picture file, force download with action.php

This commit is contained in:
plegall
2016-05-10 11:37:35 +02:00
parent f0d29d9134
commit a684afbdc3
2 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -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);
}
}