MDL-30639 mod_lesson: Used a consistent format for users display of answer
authorSam Hemelryk <sam@moodle.com>
Wed, 21 Dec 2011 22:22:59 +0000 (11:22 +1300)
committerSam Hemelryk <sam@moodle.com>
Wed, 21 Dec 2011 22:22:59 +0000 (11:22 +1300)
mod/lesson/pagetypes/essay.php

index 4793572..148fe8e 100644 (file)
@@ -218,7 +218,7 @@ class lesson_page_type_essay extends lesson_page {
                 // dont think this should ever be reached....
                 $avescore = get_string("nooneansweredthisquestion", "lesson");
             }
-            $answerdata->answers[] = array(format_text($essayinfo->answer, $answerdata->responseformat, $formattextdefoptions), $avescore);
+            $answerdata->answers[] = array(format_text($essayinfo->answer, FORMAT_MOODLE, $formattextdefoptions), $avescore);
             $answerpage->answerdata = $answerdata;
         }
         return $answerpage;