mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
fixes #415, even if non-picture file, force download with action.php
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user