aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2016-05-13 11:05:15 +0200
committerplegall <plg@piwigo.org>2016-05-13 11:05:15 +0200
commitbd0d2ae6459c63ed7f7060589297bf63ae1cc619 (patch)
tree66fa333d54fa39d7ea2e559cb607f0b594805934 /picture.php
parent2543002c8bb751517947010814aa8128e2f368aa (diff)
parentbf81ba031575b8cd1ccc318f5d5a8f8ec7cb5049 (diff)
Merge branch '2.8'
Diffstat (limited to 'picture.php')
-rw-r--r--picture.php3
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);
}
}