From: stronk7 Date: Sun, 25 Apr 2004 08:43:42 +0000 (+0000) Subject: Take our some notices... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c18490b89b9172bed449b5de0a896d40278ae608;p=moodle.git Take our some notices... --- diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index 29132a6151..26e029b84d 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -523,6 +523,7 @@ function quiz_print_question($number, $question, $grade, $quizid, /// Prints a quiz question, any format /// $question is provided as an object + $question->questiontextformat = isset($question->questiontextformat) ? $question->questiontextformat : NULL; if ($question->qtype == DESCRIPTION) { // Special case question - has no answers etc echo '

'; @@ -1068,6 +1069,8 @@ function quiz_print_quiz_questions($quiz, $results=NULL, $questions=NULL, $shuff echo "
"; } + $results->attemptbuildsonthelast = isset($results->attemptbuildsonthelast) ? $results->attemptbuildsonthelast : NULL; + if (empty($results) || $results->attemptbuildsonthelast) { if (!empty($quiz->shufflequestions)) { // Things have been mixed up, so pass the question order $shuffleorder = implode(',', $questionorder);