]> git.mjollnir.org Git - moodle.git/commitdiff
Small change to question_print_comment_box() to allow multiple boxes on one page
authorgustav_delius <gustav_delius>
Sun, 9 Apr 2006 22:48:58 +0000 (22:48 +0000)
committergustav_delius <gustav_delius>
Sun, 9 Apr 2006 22:48:58 +0000 (22:48 +0000)
lib/questionlib.php

index 44e2251a808fe990d62b5d7dfed79dfdd8c15f5a..29fd4e6f446dfcd17c2bde498b0f54c591ac75d1 100644 (file)
@@ -1171,6 +1171,7 @@ function get_question_image($question, $courseid) {
 function question_print_comment_box($question, $state, $attempt, $url) {
    global $CFG;
 
+   $prefix = 'response';
    $usehtmleditor = can_use_richtext_editor();
    $grade = round($state->last_graded->grade, 3);
    echo '<form method="post" action="'.$url.'">';
@@ -1182,7 +1183,7 @@ function question_print_comment_box($question, $state, $attempt, $url) {
    echo '</form>';
 
    if ($usehtmleditor) {
-       use_html_editor('comment');
+       use_html_editor();
    }
 }