From 537114c6cce43ab222c65ccc6fe784ee9bd69f86 Mon Sep 17 00:00:00 2001 From: Roger Moore Date: Mon, 31 Oct 2011 17:52:30 +0000 Subject: [PATCH] MDL-28426 question export should write answer and feedback format to the file. --- question/type/questiontype.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/question/type/questiontype.php b/question/type/questiontype.php index e5dacab5ab7..751f6db6b70 100644 --- a/question/type/questiontype.php +++ b/question/type/questiontype.php @@ -1609,9 +1609,11 @@ class default_questiontype { } else { foreach ($question->options->answers as $answer) { $percent = 100 * $answer->fraction; - $expout .= " \n"; + $ansformat = $format->get_format($answer->answerformat); + $fbformat = $format->get_format($answer->feedbackformat); + $expout .= " \n"; $expout .= $format->writetext($answer->answer, 3, false); - $expout .= " \n"; + $expout .= " \n"; $expout .= $format->writetext($answer->feedback, 4, false); $expout .= " \n"; $expout .= " \n";