]> git.mjollnir.org Git - moodle.git/commitdiff
Fix Javascript error from essay questions on the review page.
authortjhunt <tjhunt>
Wed, 12 Dec 2007 18:10:48 +0000 (18:10 +0000)
committertjhunt <tjhunt>
Wed, 12 Dec 2007 18:10:48 +0000 (18:10 +0000)
question/type/essay/questiontype.php

index 240872c2d718239e916d1ea8b54e7ff653b5305f..c4c48281b4da8275bd52e54ca390c1c9011dae2a 100644 (file)
@@ -102,7 +102,7 @@ class question_essay_qtype extends default_questiontype {
 
         include("$CFG->dirroot/question/type/essay/display.html");
 
-        if ($usehtmleditor) {
+        if ($usehtmleditor && empty($options->readonly)) {
             use_html_editor($inputname);
             $htmleditorused = true;
         }