Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
6b6905b6
Commit
6b6905b6
authored
Sep 01, 2015
by
Dan Poltawski
Browse files
Merge branch 'MDL-45841_28' of
git://github.com/timhunt/moodle
into MOODLE_28_STABLE
parents
963b3736
8ebae0d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod/forum/lib.php
View file @
6b6905b6
...
...
@@ -3505,6 +3505,15 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
}
else
{
$replystring
=
get_string
(
'repliesmany'
,
'forum'
,
$post
->
replies
);
}
if
(
!
empty
(
$discussion
->
unread
)
&&
$discussion
->
unread
!==
'-'
)
{
$replystring
.
=
' <span class="sep">/</span> <span class="unread">'
;
if
(
$discussion
->
unread
==
1
)
{
$replystring
.
=
get_string
(
'unreadpostsone'
,
'forum'
);
}
else
{
$replystring
.
=
get_string
(
'unreadpostsnumber'
,
'forum'
,
$discussion
->
unread
);
}
$replystring
.
=
'</span>'
;
}
$output
.
=
html_writer
::
start_tag
(
'div'
,
array
(
'class'
=>
'link'
));
$output
.
=
html_writer
::
link
(
$discussionlink
,
get_string
(
'discussthistopic'
,
'forum'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment