|
|
|
@ -651,7 +651,7 @@ foreach ($posts as $post) { |
|
|
|
|
/** @var \Chamilo\CourseBundle\Entity\CForumAttachment $attachment */ |
|
|
|
|
foreach ($attachments as $attachment) { |
|
|
|
|
$post['post_attachments'] .= Display::return_icon('attachment.png', get_lang('Attachment')); |
|
|
|
|
$url = $repo->getResourceFileUrl($attachment); |
|
|
|
|
$url = $repo->getResourceFileDownloadUrl($attachment); |
|
|
|
|
$post['post_attachments'] .= Display::url($attachment->getFilename(), $url); |
|
|
|
|
|
|
|
|
|
$post['post_attachments'] .= '<span class="forum_attach_comment" >'.$attachment->getComment().'</span>'; |
|
|
|
|