Format now uses defaultquestion(). Bug #4752

This commit is contained in:
thepurpleblob
2006-02-13 16:11:17 +00:00
parent cb04e0d664
commit 2ad273d70b
2 changed files with 2 additions and 9 deletions
+1 -6
View File
@@ -33,7 +33,7 @@ class quiz_format_aon extends quiz_default_format {
/// this format, this function converts it into a question
/// object suitable for processing and insertion into Moodle.
$question = NULL;
$question = $this->defaultquestion();
$text = implode($lines, " ");
@@ -86,9 +86,6 @@ class quiz_format_aon extends quiz_default_format {
$question->fraction[] = 1;
$question->feedback[] = "";
$question->usecase = 0; // Ignore case
$question->defaultgrade = 1;
$question->image = ""; // No images with this format
return $question;
default:
@@ -107,9 +104,7 @@ class quiz_format_aon extends quiz_default_format {
$question->feedback[$key] = "";
}
$question->defaultgrade = 1;
$question->single = 1; // Only one answer is allowed
$question->image = ""; // No images with this format
return $question;
}
}
+1 -3
View File
@@ -154,12 +154,10 @@ class quiz_format_coursetestmanager extends quiz_default_format {
}
foreach ($records as $qrec)
{
$question = NULL;
$question->image = ""; // No images with this format
$question = $this->defaultquestion();
if ($qrec[9] != "") {
$question->image = $qrec[9];
}
$question->defaultgrade = 1;
// 0 Selected
// 1 PracticeTestOK?
// 2 QuestionText