From: gustav_delius Date: Tue, 28 Mar 2006 07:37:51 +0000 (+0000) Subject: Fixed incorrect use of quiz_get_renderoptions. This quiz-specific function should... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=66125eda14099865f02cb13a3ce86d39a686d900;p=moodle.git Fixed incorrect use of quiz_get_renderoptions. This quiz-specific function should in future be removed from this question code --- diff --git a/question/preview.php b/question/preview.php index f45199477b..a5acadf65a 100644 --- a/question/preview.php +++ b/question/preview.php @@ -167,7 +167,8 @@ $curstate =& $states[$historylength][$id]; } - $options = quiz_get_renderoptions($quiz, $curstate); + // TODO: should not use quiz-specific function here + $options = quiz_get_renderoptions($quiz->review, $curstate); // Fill in the correct responses (unless the question is in readonly mode) if ($fillcorrect && !$options->readonly) {