From 86535f77d6b32a2c8a403609ded299a76c73bba0 Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 2 Jan 2012 09:48:22 -0500 Subject: added support for downloading images --- start.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'start.php') diff --git a/start.php b/start.php index 948d42fb5..5638037cc 100644 --- a/start.php +++ b/start.php @@ -199,13 +199,9 @@ function tidypics_page_handler($page) { break; case "download": // download an image - if (isset($page[1])) { - set_input('file_guid', $page[1]); - } - if (isset($page[2])) { - set_input('type', $page[2]); - } - include($CONFIG->pluginspath . "tidypics/pages/download.php"); + set_input('guid', $page[1]); + set_input('disposition', elgg_extract(2, $page, 'attachment')); + include "$base/image/download.php"; break; case "tagged": // all photos tagged with user -- cgit v1.2.3