From bdc8df4e735666ab286ce3e14f7baf0dada68d11 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Tue, 1 Sep 2009 12:14:06 +0000 Subject: adjusting download links --- views/default/object/image.php | 5 ++++- views/default/tidypics/image_menu.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/views/default/object/image.php b/views/default/object/image.php index 2d560f8bb..a97916b7a 100644 --- a/views/default/object/image.php +++ b/views/default/object/image.php @@ -147,7 +147,10 @@
\"{$title}\""; + $ts = time(); + $token = generate_action_token($ts); + $download_url = $vars['url'] . "action/tidypics/download?file_guid=" . $image_guid . "&view=inline&__elgg_token={$token}&__elgg_ts={$ts}"; + echo "\"{$title}\""; } else { echo "\"{$title}\""; } diff --git a/views/default/tidypics/image_menu.php b/views/default/tidypics/image_menu.php index b804c8491..cb004395e 100644 --- a/views/default/tidypics/image_menu.php +++ b/views/default/tidypics/image_menu.php @@ -46,7 +46,7 @@ $ts = time(); $token = generate_action_token($ts); - $download_url = $vars['url'] . "action/tidypics/download?file_guid=" . $image_guid . "&__elgg_token=$token&__elgg_ts=$ts"; + $download_url = $vars['url'] . "action/tidypics/download?file_guid=" . $image_guid . "&__elgg_token={$token}&__elgg_ts={$ts}"; ?>