From: gustav_delius Date: Sat, 8 Apr 2006 08:22:18 +0000 (+0000) Subject: submit button for teacher comment is now included in question_print_comment_box X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2a2aba273fd3137e6f04c32e7b7d287aeaf71ce7;p=moodle.git submit button for teacher comment is now included in question_print_comment_box --- diff --git a/lib/questionlib.php b/lib/questionlib.php index c8d27c5bde..1d652d80f2 100644 --- a/lib/questionlib.php +++ b/lib/questionlib.php @@ -1169,17 +1169,21 @@ function get_question_image($question, $courseid) { } function question_print_comment_box($question, $state, $attempt, $url) { - global $CFG; - if ($usehtmleditor = can_use_richtext_editor()) { - use_html_editor('comment'); - } - $grade = round($state->last_graded->grade, 3); - echo '
'; - include($CFG->dirroot.'/question/comment.html'); - echo ''; - echo ''; - echo ''; - echo '
'; + global $CFG; + + $usehtmleditor = can_use_richtext_editor(); + $grade = round($state->last_graded->grade, 3); + echo '
'; + include($CFG->dirroot.'/question/comment.html'); + echo ''; + echo ''; + echo ''; + echo ''; + echo '
'; + + if ($usehtmleditor) { + use_html_editor('comment'); + } } function question_process_comment($question, &$state, &$attempt, $comment, $grade) {