From c5169f4e784ed05693a2eb2dbbc8337aeb63115d Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Thu, 10 Mar 2011 21:40:00 +0000 Subject: [PATCH] MDL-26748 file links in qtype essay feedback broken. Fix thanks to Respondus Inc. --- question/type/essay/questiontype.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/question/type/essay/questiontype.php b/question/type/essay/questiontype.php index 102b26f1bc2..7bb7e3a743a 100644 --- a/question/type/essay/questiontype.php +++ b/question/type/essay/questiontype.php @@ -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); } }