aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'start.php')
-rw-r--r--start.php10
1 files changed, 3 insertions, 7 deletions
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