diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-01 15:17:50 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-01 15:17:50 +0000 |
commit | 872c762193858adfcf7a7621f3d86d2f30a346fb (patch) | |
tree | 6000444e4e4a19ef3c8f5eda2817d6a74ebbd08e /mod/file/views/default | |
parent | f6933c12066b0c4acc0475e2c4b30c14490f10f8 (diff) | |
download | elgg-872c762193858adfcf7a7621f3d86d2f30a346fb.tar.gz elgg-872c762193858adfcf7a7621f3d86d2f30a346fb.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Download page added
git-svn-id: https://code.elgg.org/elgg/trunk@604 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file/views/default')
-rw-r--r-- | mod/file/views/default/file/file.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/file/views/default/file/file.php b/mod/file/views/default/file/file.php index 7b6213684..d2efa1b0c 100644 --- a/mod/file/views/default/file/file.php +++ b/mod/file/views/default/file/file.php @@ -11,6 +11,7 @@ global $CONFIG; + $file_guid = $vars['file_guid']; $tags = $vars['tags']; $title = $vars['title']; $desc = $vars['description']; @@ -21,9 +22,9 @@ <div class="file"> <table width="100%"> <tr> - <td valign="top"> + <td valign="top" width="100"> <div class="file_icon"> - <?php echo elgg_view("file/icon", array("mimetype" => $mime)); ?> + <a href="<?php echo $vars['url']; ?>action/file/download?file_guid=<?php echo $file_guid; ?>"><?php echo elgg_view("file/icon", array("mimetype" => $mime)); ?></a> </div> </td> <td valign="top"> |