Permalink
Browse files

Merge branch 'MDL-61010-master' of git://github.com/andrewnicols/moodle

  • Loading branch information...
dmonllao committed Jan 15, 2018
2 parents 110965a + 600bd18 commit 5d89d24bea4c1f4734941766c0694f2b12d0002e
Showing with 3 additions and 2 deletions.
  1. +3 −2 mod/forum/lib.php
@@ -3516,10 +3516,11 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
}
if (!empty($discussion->unread) && $discussion->unread !== '-') {
$replystring .= ' <span class="sep">/</span> <span class="unread">';
$unreadlink = new moodle_url($discussionlink, null, 'unread');
if ($discussion->unread == 1) {
$replystring .= get_string('unreadpostsone', 'forum');
$replystring .= html_writer::link($unreadlink, get_string('unreadpostsone', 'forum'));
} else {
$replystring .= get_string('unreadpostsnumber', 'forum', $discussion->unread);
$replystring .= html_writer::link($unreadlink, get_string('unreadpostsnumber', 'forum', $discussion->unread));
}
$replystring .= '</span>';
}

0 comments on commit 5d89d24

Please sign in to comment.