Skip to content

Commit

Permalink
Merge pull request Elgg#5962 from juho-jaakkola/file_icon_link
Browse files Browse the repository at this point in the history
Do not use link with file icon when using full_view
  • Loading branch information
mrclay committed Aug 28, 2013
2 parents 05af220 + 785c2db commit 335db5e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mod/file/views/default/object/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
));
$author_text = elgg_echo('byline', array($owner_link));

$file_icon = elgg_view_entity_icon($file, 'small');

$date = elgg_view_friendly_time($file->time_created);

$comments_count = $file->countComments();
Expand Down Expand Up @@ -78,6 +76,8 @@
$text = elgg_view('output/longtext', array('value' => $file->description));
$body = "$text $extra";

$file_icon = elgg_view_entity_icon($file, 'small', array('href' => false));

echo elgg_view('object/elements/full', array(
'entity' => $file,
'icon' => $file_icon,
Expand All @@ -94,6 +94,8 @@
} else {
// brief view

$file_icon = elgg_view_entity_icon($file, 'small');

$params = array(
'entity' => $file,
'metadata' => $metadata,
Expand Down

0 comments on commit 335db5e

Please sign in to comment.