Format now uses defaultquestion() method. Bug #4752

This commit is contained in:
thepurpleblob 2006-02-14 09:53:37 +00:00
parent 4db0b132cb
commit bfb5216f5d

View file

@ -262,6 +262,7 @@ class quiz_format_webct extends quiz_default_format {
$nQuestionStartLine = 0;
$bIsHTMLText = FALSE;
$lines[] = ":EOF:"; // for an easiest processing of the last line
$question = $this->defaultquestion();
foreach ($lines as $line) {
$nLineCounter++;
@ -406,6 +407,7 @@ class quiz_format_webct extends quiz_default_format {
// $question->feedback = array();
$questions[] = $question; // store it
unset($question); // and prepare a new one
$question = $this->defaultquestion();
}
}
$nQuestionStartLine = $nLineCounter;