aboutsummaryrefslogtreecommitdiff
path: root/mod/file/views/default/object
diff options
context:
space:
mode:
Diffstat (limited to 'mod/file/views/default/object')
-rw-r--r--mod/file/views/default/object/file.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/mod/file/views/default/object/file.php b/mod/file/views/default/object/file.php
index 5fcd2a023..cbe19f3c6 100644
--- a/mod/file/views/default/object/file.php
+++ b/mod/file/views/default/object/file.php
@@ -27,12 +27,7 @@ $owner_link = elgg_view('output/url', array(
));
$author_text = elgg_echo('blog:author_by_line', array($owner_link));
-$file_icon = elgg_view('file/icon', array(
- 'mimetype' => $mime,
- 'thumbnail' => $file->thumbnail,
- 'file_guid' => $file->guid,
- 'size' => 'small'
-));
+$file_icon = elgg_view_entity_icon($file, 'small');
$tags = elgg_view('output/tags', array('tags' => $file->tags));
$date = elgg_view_friendly_time($file->time_created);
@@ -102,7 +97,7 @@ HTML;
} elseif (elgg_in_context('gallery')) {
echo '<div class="file-gallery-item">';
echo "<h3>" . $file->title . "</h3>";
- echo "<a href=\"{$file->getURL()}\"><img src=\"".elgg_get_site_url()."mod/file/thumbnail.php?size=medium&file_guid={$vars['entity']->getGUID()}\" /></a>";
+ echo elgg_view_entity_icon($file, 'medium');
echo "<p class='subtitle'>$owner_link $date</p>";
echo '</div>';
} else {