diff options
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/tidypics/image_menu.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/views/default/tidypics/image_menu.php b/views/default/tidypics/image_menu.php index afbb34f21..b804c8491 100644 --- a/views/default/tidypics/image_menu.php +++ b/views/default/tidypics/image_menu.php @@ -42,9 +42,13 @@ }
}
- if (get_plugin_setting('download_link', 'tidypics') != "disabled") {
+ if (get_plugin_setting('download_link', 'tidypics') != "disabled") {
+ $ts = time();
+ $token = generate_action_token($ts);
+
+ $download_url = $vars['url'] . "action/tidypics/download?file_guid=" . $image_guid . "&__elgg_token=$token&__elgg_ts=$ts";
?>
-<li id="download_image"><a href="<?php echo $vars['url']; ?>action/tidypics/download?file_guid=<?php echo $image_guid; ?>"><?php echo elgg_echo("image:download"); ?></a></li>
+<li id="download_image"><a href="<?php echo $download_url; ?>"><?php echo elgg_echo("image:download"); ?></a></li>
<?php
}
?>
\ No newline at end of file |