Skip to content

Commit

Permalink
fix bug comment list invalid context error
Browse files Browse the repository at this point in the history
  • Loading branch information
dionysius committed Apr 1, 2019
1 parent 9efb8a4 commit 55870d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,7 @@ function mod_studentquiz_comment_renderer($comments, $userid, $cmid, $anonymize,
. html_writer::tag('p', $date . ' | ' . $username)
. format_text(
$comment->comment,
FORMAT_MOODLE,
array('context' => $cmid)
FORMAT_MOODLE
),
(($num >= $showmoreafter) ? 'hidden' : '')
. (($isfromcreator) ? 'fromcreator' : '')
Expand Down

0 comments on commit 55870d8

Please sign in to comment.