From 272ac7519214f1b75d4b71247438612af8c86643 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 5 Nov 2011 15:43:50 -0400 Subject: Fixes #4048 using page handler for file downloads --- mod/file/start.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mod/file/start.php') 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/ * Edit file: file/edit/ * Group files: file/group//all + * Download: file/download/ * * 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; } -- cgit v1.2.3