Permalink
Browse files

Merge branch 'MDL-61010-33' of git://github.com/andrewnicols/moodle i…

…nto MOODLE_33_STABLE
  • Loading branch information...
dmonllao committed Jan 16, 2018
2 parents fb4da0d + 2a208a3 commit 97cf15c9adbd756643040cc5aa2c44d0d528cadd
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 97cf15c

Please sign in to comment.