From: gustav_delius Date: Sun, 30 Apr 2006 17:31:33 +0000 (+0000) Subject: Use the missingtype question type to print the explanation message when a random... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f57c624262f34ba0a659576b784ec19667a296eb;p=moodle.git Use the missingtype question type to print the explanation message when a random question is missing --- 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]; }