aboutsummaryrefslogtreecommitdiff
path: root/mod/file/start.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-11-05 15:43:50 -0400
committercash <cash.costello@gmail.com>2011-11-05 15:43:50 -0400
commit272ac7519214f1b75d4b71247438612af8c86643 (patch)
tree08286498ec81f5783b58f5042ccf033399647405 /mod/file/start.php
parent2d8d81df30e4a7ee65caf9469ba0cc486d494f29 (diff)
downloadelgg-272ac7519214f1b75d4b71247438612af8c86643.tar.gz
elgg-272ac7519214f1b75d4b71247438612af8c86643.tar.bz2
Fixes #4048 using page handler for file downloads
Diffstat (limited to 'mod/file/start.php')
-rw-r--r--mod/file/start.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/file/start.php b/mod/file/start.php
index f8b7fa423..7a0a05844 100644
--- a/mod/file/start.php
+++ b/mod/file/start.php
@@ -96,6 +96,7 @@ function file_init() {
* New file: file/add/<guid>
* Edit file: file/edit/<guid>
* Group files: file/group/<guid>/all
+ * Download: file/download/<guid>
*
* Title is ignored
*
@@ -138,6 +139,10 @@ function file_page_handler($page) {
case 'all':
include "$file_dir/world.php";
break;
+ case 'download':
+ set_input('guid', $page[1]);
+ include "$file_dir/download.php";
+ break;
default:
return false;
}