From: tjhunt Date: Tue, 22 Aug 2006 21:33:54 +0000 (+0000) Subject: SC 299. Merged from MOODLE_16_STABLE. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e9ad37edc27b11f7aec60ab0c00f1d3c52023785;p=moodle.git SC 299. Merged from MOODLE_16_STABLE. --- diff --git a/question/type/essay/questiontype.php b/question/type/essay/questiontype.php index 0fc3331e28..017db8885b 100644 --- a/question/type/essay/questiontype.php +++ b/question/type/essay/questiontype.php @@ -87,8 +87,10 @@ class question_essay_qtype extends default_questiontype { $answer = print_textarea($usehtmleditor, 18, 80, 630, 400, $inputname, $value, $cmoptions->course, true); } else { // it is read only, so just format the students answer and output it - $answer = format_text($value, $question->questiontextformat, - $formatoptions, $cmoptions->course); + $safeformatoptions = new stdClass; + $safeformatoptions->para = false; + $answer = format_text($value, FORMAT_MOODLE, + $safeformatoptions, $cmoptions->course); } include("$CFG->dirroot/question/type/essay/display.html");