mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Format now uses defaultquestion() method. Bug #4752
This commit is contained in:
parent
4db0b132cb
commit
bfb5216f5d
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue