From 66125eda14099865f02cb13a3ce86d39a686d900 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Tue, 28 Mar 2006 07:37:51 +0000 Subject: [PATCH] Fixed incorrect use of quiz_get_renderoptions. This quiz-specific function should in future be removed from this question code --- question/preview.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.39.5