From 3bd5e571364385cb93a93b8526e1e90e56db7b49 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Fri, 11 Dec 2009 12:30:23 +0000 Subject: moved download action to download page --- views/default/object/image.php | 2 +- views/default/tidypics/image_menu.php | 2 +- views/rss/object/album.php | 4 ++-- views/rss/object/file.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'views') diff --git a/views/default/object/image.php b/views/default/object/image.php index dd52f872e..fb7a72ff8 100644 --- a/views/default/object/image.php +++ b/views/default/object/image.php @@ -150,7 +150,7 @@ $image_link = false; if (get_plugin_setting('download_link', 'tidypics') != "disabled") { // admin allows downloads so default to inline download link - $image_link = $vars['url'] . "action/tidypics/download?file_guid=" . $image_guid . "&view=inline"; + $image_link = $vars['url'] . "pg/photos/download/{$image_guid}/inline/"; } // does any plugin want to override the link $image_link = trigger_plugin_hook('tp_image_link', 'image', $image, $image_link); diff --git a/views/default/tidypics/image_menu.php b/views/default/tidypics/image_menu.php index 5e6053a94..9e7a53969 100644 --- a/views/default/tidypics/image_menu.php +++ b/views/default/tidypics/image_menu.php @@ -43,7 +43,7 @@ } if (get_plugin_setting('download_link', 'tidypics') != "disabled") { - $download_url = $vars['url'] . "action/tidypics/download?file_guid=" . $image_guid; + $download_url = $vars['url'] . "pg/photos/download/{$image_guid}/"; ?>
  • cover) { @@ -52,7 +52,7 @@ time_created); ?> getURL(); ?> - + title; ?> description); ?> diff --git a/views/rss/object/file.php b/views/rss/object/file.php index ace3e28e6..e40da4f69 100644 --- a/views/rss/object/file.php +++ b/views/rss/object/file.php @@ -19,5 +19,5 @@ getURL(); ?> <![CDATA[<?php echo $title; ?>]]> description)); ?>]]> - + -- cgit v1.2.3