mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +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;
|
$nQuestionStartLine = 0;
|
||||||
$bIsHTMLText = FALSE;
|
$bIsHTMLText = FALSE;
|
||||||
$lines[] = ":EOF:"; // for an easiest processing of the last line
|
$lines[] = ":EOF:"; // for an easiest processing of the last line
|
||||||
|
$question = $this->defaultquestion();
|
||||||
|
|
||||||
foreach ($lines as $line) {
|
foreach ($lines as $line) {
|
||||||
$nLineCounter++;
|
$nLineCounter++;
|
||||||
|
@ -406,6 +407,7 @@ class quiz_format_webct extends quiz_default_format {
|
||||||
// $question->feedback = array();
|
// $question->feedback = array();
|
||||||
$questions[] = $question; // store it
|
$questions[] = $question; // store it
|
||||||
unset($question); // and prepare a new one
|
unset($question); // and prepare a new one
|
||||||
|
$question = $this->defaultquestion();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$nQuestionStartLine = $nLineCounter;
|
$nQuestionStartLine = $nLineCounter;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue