Fix bugs with GIFT import.

This commit is contained in:
tjhunt
2006-10-17 10:51:44 +00:00
parent b40e18c325
commit 2fe45c4a0a
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -181,6 +181,7 @@ class qformat_default {
$question->image = "";
$question->usecase = 0;
$question->multiplier = array();
$question->generalfeedback = '';
return $question;
}
+4 -1
View File
@@ -292,7 +292,10 @@ class qformat_gift extends qformat_default {
}
$question->fraction[$key] = $answer_weight;
$question->feedback[$key] = $this->commentparser($answer); // commentparser also removes comment from $answer
$question->answer[$key] = addslashes($this->escapedchar_post($answer));
$question->answer[$key] = addslashes($this->escapedchar_post($answer));
$question->correctfeedback = '';
$question->partiallycorrectfeedback = '';
$question->incorrectfeedback = '';
} // end foreach answer
//$question->defaultgrade = 1;