Skip to content

Commit

Permalink
Fix Flat and Nested View for show and prevent click the user img in p…
Browse files Browse the repository at this point in the history
…ost list redirect to the full page of chamilo when the forum is in LP - Refs #8104
  • Loading branch information
jloguercio committed Mar 4, 2016
1 parent 115d5a5 commit 117f9db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main/forum/viewthread_flat.inc.php
Expand Up @@ -121,14 +121,17 @@

if ($origin != 'learnpath') {
if (api_get_course_setting('allow_user_image_forum')) {
$html .= '<div class="thumbnail">' . display_user_image($row['user_id'], $name) . '</div>';
$html .= '<div class="thumbnail">' . display_user_image($row['user_id'], $name, $origin) . '</div>';
}
$html .= Display::tag(
'h4',
display_user_link($row['user_id'], $name),
array('class' => 'title-username')
);
} else {
if (api_get_course_setting('allow_user_image_forum')) {
$html .= '<div class="thumbnail">' . display_user_image($row['user_id'], $name, $origin) . '</div>';
}
$name = Display::tag('strong', "#" . $postCount--, ['class' => 'text-info']) . " | $name";

$html .= Display::tag(
Expand Down
4 changes: 4 additions & 0 deletions main/forum/viewthread_nested.inc.php
Expand Up @@ -82,6 +82,10 @@
array('class' => 'title-username')
);
} else {
if (api_get_course_setting('allow_user_image_forum')) {
$html .= '<div class="thumbnail">' . display_user_image($post['user_id'], $name, $origin) . '</div>';
}

$html .= Display::tag(
'p',
$name,
Expand Down

0 comments on commit 117f9db

Please sign in to comment.