Skip to content
Browse files

Merge branch 'MDL-28426_21' of git://github.com/timhunt/moodle into M…

…OODLE_21_STABLE
  • Loading branch information...
2 parents 147ec85 + 2dd93c0 commit 8ec13b3312f922706951608ac3b52b4a9b9ece1e @stronk7 stronk7 committed Nov 10, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 question/type/questiontypebase.php
View
5 question/type/questiontypebase.php
@@ -995,10 +995,11 @@ public function export_to_xml($question, $format, $extra=null) {
array_shift($extraanswersfields);
}
foreach ($question->options->answers as $answer) {
+ // TODO this should be re-factored to use $format->write_answer().
$percent = 100 * $answer->fraction;
- $expout .= " <answer fraction=\"$percent\">\n";
+ $expout .= " <answer fraction=\"$percent\" {$format->format($answer->answerformat)}>\n";
$expout .= $format->writetext($answer->answer, 3, false);
- $expout .= " <feedback>\n";
+ $expout .= " <feedback {$format->format($question->feedbackformat)}>\n";
$expout .= $format->writetext($answer->feedback, 4, false);
$expout .= " </feedback>\n";
if (is_array($extraanswersfields)) {

0 comments on commit 8ec13b3

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