Use the missingtype question type to print the explanation message when a random question is missing

This commit is contained in:
gustav_delius
2006-04-30 17:31:33 +00:00
parent 2be604b665
commit f57c624262
+1 -1
View File
@@ -134,7 +134,7 @@ class random_qtype extends default_questiontype {
$wrappedquestion = clone($question);
$wrappedquestion->id = $answerregs[1];
$wrappedquestion->questiontext = get_string('questiondeleted', 'quiz');
$wrappedquestion->qtype = 'description';
$wrappedquestion->qtype = 'missingtype';
}
$state->responses[''] = (false === $answerregs[2]) ? '' : $answerregs[2];
}