mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Included support to DESCRIPTION qtype.
Mainly, do nothing, but it's supported now :-)
This commit is contained in:
parent
bca64a122b
commit
96e1bd4a55
@ -148,6 +148,8 @@
|
||||
$status = quiz_backup_match($bf,$preferences,$question->id);
|
||||
} else if ($question->qtype == "6") {
|
||||
$status = quiz_backup_randomsamatch($bf,$preferences,$question->id);
|
||||
} else if ($question->qtype == "7") {
|
||||
//Description question. Nothing to write.
|
||||
}
|
||||
//End question
|
||||
$status =fwrite ($bf,end_tag("QUESTION",5,true));
|
||||
|
@ -186,6 +186,8 @@
|
||||
$status = quiz_restore_match($oldid,$newid,$que_info,$restore);
|
||||
} else if ($question->qtype == "6") {
|
||||
$status = quiz_restore_randomsamatch($oldid,$newid,$que_info,$restore);
|
||||
} else if ($question->qtype == "7") {
|
||||
//Description question. Nothing to do.
|
||||
}
|
||||
} else {
|
||||
$status = false;
|
||||
@ -880,6 +882,10 @@
|
||||
}
|
||||
$response->answer = $answer_field;
|
||||
break;
|
||||
case 7: //DESCRIPTION QTYPE
|
||||
//Nothing to do (there is no awser to this qtype)
|
||||
//But this case must exist !!
|
||||
break;
|
||||
default: //UNMATCHED QTYPE.
|
||||
//This is an error (unimplemented qtype)
|
||||
$status = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user