Skip to content

Commit 97cf15c

Browse files
author
David Monllao
committed
Merge branch 'MDL-61010-33' of git://github.com/andrewnicols/moodle into MOODLE_33_STABLE
2 parents fb4da0d + 2a208a3 commit 97cf15c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mod/forum/lib.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -3516,10 +3516,11 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
35163516
}
35173517
if (!empty($discussion->unread) && $discussion->unread !== '-') {
35183518
$replystring .= ' <span class="sep">/</span> <span class="unread">';
3519+
$unreadlink = new moodle_url($discussionlink, null, 'unread');
35193520
if ($discussion->unread == 1) {
3520-
$replystring .= get_string('unreadpostsone', 'forum');
3521+
$replystring .= html_writer::link($unreadlink, get_string('unreadpostsone', 'forum'));
35213522
} else {
3522-
$replystring .= get_string('unreadpostsnumber', 'forum', $discussion->unread);
3523+
$replystring .= html_writer::link($unreadlink, get_string('unreadpostsnumber', 'forum', $discussion->unread));
35233524
}
35243525
$replystring .= '</span>';
35253526
}

0 commit comments

Comments
 (0)