Skip to content

Commit

Permalink
Small change to question_print_comment_box() to allow multiple boxes …
Browse files Browse the repository at this point in the history
…on one page
  • Loading branch information
gustav_delius committed Apr 9, 2006
1 parent cf156ab commit 848d886
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/questionlib.php
Expand Up @@ -1171,6 +1171,7 @@ function get_question_image($question, $courseid) {
function question_print_comment_box($question, $state, $attempt, $url) { function question_print_comment_box($question, $state, $attempt, $url) {
global $CFG; global $CFG;


$prefix = 'response';
$usehtmleditor = can_use_richtext_editor(); $usehtmleditor = can_use_richtext_editor();
$grade = round($state->last_graded->grade, 3); $grade = round($state->last_graded->grade, 3);
echo '<form method="post" action="'.$url.'">'; echo '<form method="post" action="'.$url.'">';
Expand All @@ -1182,7 +1183,7 @@ function question_print_comment_box($question, $state, $attempt, $url) {
echo '</form>'; echo '</form>';


if ($usehtmleditor) { if ($usehtmleditor) {
use_html_editor('comment'); use_html_editor();
} }
} }


Expand Down

0 comments on commit 848d886

Please sign in to comment.