Permalink
Browse files

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

  • Loading branch information...
1 parent acb3bf8 commit 9abb69aacb5b3d5cc1e048200e9ecff9f6613c56 @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 9abb69a

Please sign in to comment.