From ed6e226e6438e45cf1f52d69f823226bb299fce8 Mon Sep 17 00:00:00 2001 From: pichetp Date: Fri, 9 Mar 2007 05:33:12 +0000 Subject: [PATCH] modifs MDL-5650 --- question/format/webct/format.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/question/format/webct/format.php b/question/format/webct/format.php index 7cb2068a199..8911067a5c9 100644 --- a/question/format/webct/format.php +++ b/question/format/webct/format.php @@ -416,6 +416,7 @@ class qformat_webct extends qformat_default { if (eregi("^:TYPE:MC:1(.*)",$line,$webct_options)) { // Multiple Choice Question with only one good answer + $question = $this->defaultquestion(); $question->qtype = MULTICHOICE; $question->single = 1; // Only one answer is allowed $ignore_rest_of_question = FALSE; @@ -424,6 +425,7 @@ class qformat_webct extends qformat_default { if (eregi("^:TYPE:MC:N(.*)",$line,$webct_options)) { // Multiple Choice Question with several good answers + $question = $this->defaultquestion(); $question->qtype = MULTICHOICE; $question->single = 0; // Many answers allowed $ignore_rest_of_question = FALSE; @@ -432,6 +434,7 @@ class qformat_webct extends qformat_default { if (eregi("^:TYPE:S",$line)) { // Short Answer Question + $question = $this->defaultquestion(); $question->qtype = SHORTANSWER; $question->usecase = 0; // Ignore case $ignore_rest_of_question = FALSE; @@ -459,6 +462,7 @@ class qformat_webct extends qformat_default { if (eregi("^:TYPE:M",$line)) { // Match Question + $question = $this->defaultquestion(); $question->qtype = MATCH; $ignore_rest_of_question = FALSE; // match question processing is not debugged continue;