Skip to content

Commit

Permalink
MDL-26748 file links in qtype essay feedback broken.
Browse files Browse the repository at this point in the history
Fix thanks to Respondus Inc.
  • Loading branch information
timhunt committed Mar 10, 2011
1 parent 48fe5c6 commit c5169f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion question/type/essay/questiontype.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions
$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);
}
}
Expand Down

0 comments on commit c5169f4

Please sign in to comment.