MDL-30749 fixing typo referring to question instead of answer object
authorJamie Pratt <me@jamiep.org>
Thu, 15 Dec 2011 07:38:42 +0000 (14:38 +0700)
committerJamie Pratt <me@jamiep.org>
Thu, 15 Dec 2011 08:06:45 +0000 (15:06 +0700)
question/type/questiontypebase.php

index 5e76deb..9cef2d7 100644 (file)
@@ -996,7 +996,7 @@ class question_type {
             $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)) {