Permalink
Browse files

MDL-30749 fixing typo referring to question instead of answer object

  • Loading branch information...
1 parent f89a83b commit a24e35701ffc5a7e73243a9756aba27505f4fd2f @jamiepratt jamiepratt committed Dec 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/type/questiontypebase.php
@@ -996,7 +996,7 @@ public function export_to_xml($question, $format, $extra=null) {
$percent = 100 * $answer->fraction;
$expout .= " <answer fraction=\"$percent\" {$format->format($answer->answerformat)}>\n";
$expout .= $format->writetext($answer->answer, 3, false);
- $expout .= " <feedback {$format->format($question->feedbackformat)}>\n";
+ $expout .= " <feedback {$format->format($answer->feedbackformat)}>\n";
$expout .= $format->writetext($answer->feedback, 4, false);
$expout .= " </feedback>\n";
if (is_array($extraanswersfields)) {

0 comments on commit a24e357

Please sign in to comment.