mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-26748 file links in qtype essay feedback broken.
Fix thanks to Respondus Inc.
This commit is contained in:
parent
48fe5c6cf9
commit
c5169f4e78
1 changed files with 2 additions and 1 deletions
|
@ -87,7 +87,8 @@ class question_essay_qtype extends default_questiontype {
|
||||||
$feedback = '';
|
$feedback = '';
|
||||||
if ($options->feedback && !empty($answers)) {
|
if ($options->feedback && !empty($answers)) {
|
||||||
foreach ($answers as $answer) {
|
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);
|
$feedback = format_text($feedback, $answer->feedbackformat, $formatoptions, $cmoptions->course);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue