aboutsummaryrefslogtreecommitdiff
path: root/mod/file/views/default
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-01-08 15:23:36 -0500
committerCash Costello <cash.costello@gmail.com>2012-01-08 15:23:36 -0500
commit3cba074d0597d36627500607ca4a0d7cd6a79b6e (patch)
treee48344ff223a13fec9bb4d9a24ca741078bebbc6 /mod/file/views/default
parent62b03cd61f5b3c837a97e71260790c15be7e4ea2 (diff)
downloadelgg-3cba074d0597d36627500607ca4a0d7cd6a79b6e.tar.gz
elgg-3cba074d0597d36627500607ca4a0d7cd6a79b6e.tar.bz2
Fixes #2421 added icontime to files with thumbnails
Diffstat (limited to 'mod/file/views/default')
-rw-r--r--mod/file/views/default/file/specialcontent/image/default.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/mod/file/views/default/file/specialcontent/image/default.php b/mod/file/views/default/file/specialcontent/image/default.php
index fbd994a0b..431ac9f4f 100644
--- a/mod/file/views/default/file/specialcontent/image/default.php
+++ b/mod/file/views/default/file/specialcontent/image/default.php
@@ -1,13 +1,17 @@
<?php
/**
* Display an image
+ *
+ * @uses $vars['entity']
*/
-$image_url = elgg_get_site_url() . "mod/file/thumbnail.php?file_guid={$vars['entity']->getGUID()}&size=large";
+$file = $vars['entity'];
+
+$image_url = $file->getIconURL('large');
$image_url = elgg_format_url($image_url);
-$download_url = elgg_get_site_url() . "mod/file/download.php?file_guid={$vars['entity']->getGUID()}";
+$download_url = elgg_get_site_url() . "file/download/{$file->getGUID()}";
-if ($vars['full_view'] && $smallthumb = $vars['entity']->smallthumb) {
+if ($vars['full_view']) {
echo <<<HTML
<div class="file-photo">
<a href="$download_url"><img class="elgg-photo" src="$image_url" /></a>