Skip to content
Browse files

Merge branch 'MDL-26748' of git://github.com/timhunt/moodle

  • Loading branch information...
2 parents 6bfddc2 + c5169f4 commit d47070248f7c666864b4555222115b3920c6871c @stronk7 stronk7 committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 question/type/essay/questiontype.php
View
3 question/type/essay/questiontype.php
@@ -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);
}
}

0 comments on commit d470702

Please sign in to comment.
Something went wrong with that request. Please try again.