mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
Merge branch 'MDL-61010-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
5d89d24bea
@ -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>';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user