MDL-26748 file links in qtype essay feedback broken.
Fix thanks to Respondus Inc.
This commit is contained in:
@@ -87,7 +87,8 @@ class question_essay_qtype extends default_questiontype {
|
||||
$feedback = '';
|
||||
if ($options->feedback && !empty($answers)) {
|
||||
foreach ($answers as $answer) {
|
||||
$feedback = quiz_rewrite_question_urls($answer->feedback, 'pluginfile.php', $context->id, 'qtype_essay', 'feedback', array($state->attempt, $state->question), $answer->id);
|
||||
$feedback = quiz_rewrite_question_urls($answer->feedback, 'pluginfile.php',
|
||||
$context->id, 'question', 'answerfeedback', array($state->attempt, $state->question), $answer->id);
|
||||
$feedback = format_text($feedback, $answer->feedbackformat, $formatoptions, $cmoptions->course);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user