From 55870d822fa297e6d0e386259840992d2682bb37 Mon Sep 17 00:00:00 2001 From: Dragon Dionysius Date: Mon, 1 Apr 2019 21:24:55 +0200 Subject: [PATCH] fix bug comment list invalid context error --- locallib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/locallib.php b/locallib.php index c403be18..8a51bebd 100644 --- a/locallib.php +++ b/locallib.php @@ -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' : '')