Skip to content
Browse files

MDL-31102 question preview: fix HTML validation errors.

  • Loading branch information...
1 parent c1dc3a5 commit 9349aa179021d22ed781768c9fe65fe0e8d0f368 @timhunt timhunt committed Jan 10, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −0 question/preview.php
  2. +1 −1 question/previewlib.php
View
2 question/preview.php
@@ -228,8 +228,10 @@
// Start the question form.
echo '<form method="post" action="' . $actionurl .
'" enctype="multipart/form-data" id="responseform">', "\n";
+echo '<div>';
echo '<input type="hidden" name="sesskey" value="' . sesskey() . '" />', "\n";
echo '<input type="hidden" name="slots" value="' . $slot . '" />', "\n";
+echo '</div>';
// Output the question.
echo $quba->render_question($slot, $options, $displaynumber);
View
2 question/previewlib.php
@@ -89,7 +89,7 @@ public function definition() {
get_string('responsehistory', 'question'), $hiddenofvisible);
$mform->addElement('submit', 'submit',
- get_string('restartwiththeseoptions', 'question'), $hiddenofvisible);
+ get_string('restartwiththeseoptions', 'question'));
}
}

0 comments on commit 9349aa1

Please sign in to comment.
Something went wrong with that request. Please try again.