Fixed some small xhtml problems and removed a warning
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 '<input type="hidden" name="'.$inputname.'" value="'.htmlSpecialChars($value).'" />'; // need hidden one for grading
|
||||
}
|
||||
echo '</div>';
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<a name="<?php echo $question->id; ?>">
|
||||
<a name="<?php echo $question->id; ?>" id="<?php echo $question->id; ?>"></a>
|
||||
<div id="q<?php echo $question->id; ?>" class="que <?php echo $question->qtype; ?> clearfix">
|
||||
<div class="info">
|
||||
<span class="no"><?php echo $number; ?></span>
|
||||
|
||||
Reference in New Issue
Block a user