|
|
|
@ -122,6 +122,21 @@ foreach ($rows as $post) { |
|
|
|
if ($current_thread['locked']==1) { |
|
|
|
if ($current_thread['locked']==1) { |
|
|
|
echo get_lang('ThreadLocked').'<br />'; |
|
|
|
echo get_lang('ThreadLocked').'<br />'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!empty($group_id)) { |
|
|
|
|
|
|
|
$reply = api_is_allowed_to_edit() || |
|
|
|
|
|
|
|
( |
|
|
|
|
|
|
|
GroupManager::is_tutor_of_group($userId, $groupId, $courseId) || |
|
|
|
|
|
|
|
GroupManager::is_subscribed($userId, $groupId, $courseId) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($reply) { |
|
|
|
|
|
|
|
echo '<a href="reply.php?'.api_get_cidreq().'&forum='.$clean_forum_id.'&thread='.$clean_thread_id.'&post='.$post['post_id'].'&action=replymessage&origin='.$origin.'">'. |
|
|
|
|
|
|
|
Display :: return_icon('message_reply_forum.png', get_lang('ReplyToMessage'))."</a>"; |
|
|
|
|
|
|
|
echo '<a href="reply.php?'.api_get_cidreq().'&forum='.$clean_forum_id.'&thread='.$clean_thread_id.'&post='.$post['post_id'].'&action=quote&origin='.$origin.'">'. |
|
|
|
|
|
|
|
Display :: return_icon('quote.gif', get_lang('QuoteMessage'))."</a>"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
echo "</td>"; |
|
|
|
echo "</td>"; |
|
|
|
// note: this can be removed here because it will be displayed in the tree |
|
|
|
// note: this can be removed here because it will be displayed in the tree |
|
|
|
|