$question->answer was swapped for $question->correctanswer in questiontype
for some reason! Compensated for in format type.
This commit is contained in:
thepurpleblob 2007-02-21 14:20:46 +00:00
parent 474991a19d
commit 7939a4a0cb
2 changed files with 4 additions and 2 deletions

View File

@ -363,8 +363,8 @@ class qformat_gift extends qformat_default {
$question->feedbacktrue = $feedback['wrong'];
}
//$question->defaultgrade = 1;
//$question->image = ""; // No images with this format
$question->correctanswer = $question->answer;
return $question;
break;

View File

@ -232,9 +232,11 @@ class qformat_xml extends qformat_default {
}
if ($answertext == 'true') {
$qo->answer = ($answer['@']['fraction'] == 100);
$qo->correctanswer = $qo->answer;
$qo->feedbacktrue = $feedback;
} else {
$qo->answer = ($answer['@']['fraction'] != 100);
$qo->correctanswer = $qo->answer;
$qo->feedbackfalse = $feedback;
}
$first = false;