From f57c624262f34ba0a659576b784ec19667a296eb Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sun, 30 Apr 2006 17:31:33 +0000 Subject: [PATCH] Use the missingtype question type to print the explanation message when a random question is missing --- question/type/random/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/random/questiontype.php b/question/type/random/questiontype.php index 93ab0f1879..2f35ca1415 100644 --- a/question/type/random/questiontype.php +++ b/question/type/random/questiontype.php @@ -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]; } -- 2.39.5