]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11825 - Force penaltyfactor to 1 for truefalse questions on GIFT import, as is...
authortjhunt <tjhunt>
Thu, 25 Oct 2007 09:43:06 +0000 (09:43 +0000)
committertjhunt <tjhunt>
Thu, 25 Oct 2007 09:43:06 +0000 (09:43 +0000)
question/format/gift/format.php

index 16ce9e54ceed7b7a394342e336f00c3062563ce5..ece45f46adf176e3819b8cfa8277ea3fe5409b25 100755 (executable)
@@ -380,6 +380,7 @@ class qformat_gift extends qformat_default {
                     $question->feedbacktrue = $feedback['wrong'];
                 }
 
+                $question->penalty = 1;
                 $question->correctanswer = $question->answer;
 
                 return $question;