From: gustav_delius Date: Sat, 8 Apr 2006 14:20:52 +0000 (+0000) Subject: Fixed some small xhtml problems and removed a warning X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7c404f9b2b0f98ffc02e6b431c30dbb8e60c324a;p=moodle.git Fixed some small xhtml problems and removed a warning --- diff --git a/lib/questionlib.php b/lib/questionlib.php index 1d652d80f2..39277ee9db 100644 --- a/lib/questionlib.php +++ b/lib/questionlib.php @@ -615,6 +615,7 @@ function get_question_states(&$questions, $cmoptions, $attempt) { $states[$i]->raw_grade = 0; $states[$i]->penalty = 0; $states[$i]->sumpenalty = 0; + $states[$i]->comment = ''; $states[$i]->responses = array('' => ''); // Prevent further changes to the session from incrementing the // sequence number diff --git a/question/type/essay/questiontype.php b/question/type/essay/questiontype.php index e362eee3c8..7d831954a8 100644 --- a/question/type/essay/questiontype.php +++ b/question/type/essay/questiontype.php @@ -127,7 +127,8 @@ class question_essay_qtype extends default_questiontype { use_html_editor($inputname); } else { // it is read only, so just format the students answer and output it - echo format_text($value); + echo format_text($value, $question->questiontextformat, + $formatoptions, $cmoptions->course); echo ''; // need hidden one for grading } echo ''; diff --git a/question/type/question.html b/question/type/question.html index 42575de5ba..9934db0ffb 100644 --- a/question/type/question.html +++ b/question/type/question.html @@ -17,7 +17,7 @@ } - +