diff options
author | cash <cash.costello@gmail.com> | 2012-01-02 09:48:22 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2012-01-02 09:48:22 -0500 |
commit | 86535f77d6b32a2c8a403609ded299a76c73bba0 (patch) | |
tree | 94341c59aa175683618f16e602ab00752bad04f5 /start.php | |
parent | 30e4d9f0a2e45e640de3e57bd5f432022141317c (diff) | |
download | elgg-86535f77d6b32a2c8a403609ded299a76c73bba0.tar.gz elgg-86535f77d6b32a2c8a403609ded299a76c73bba0.tar.bz2 |
added support for downloading images
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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 |