]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed incorrect use of quiz_get_renderoptions. This quiz-specific function should...
authorgustav_delius <gustav_delius>
Tue, 28 Mar 2006 07:37:51 +0000 (07:37 +0000)
committergustav_delius <gustav_delius>
Tue, 28 Mar 2006 07:37:51 +0000 (07:37 +0000)
question/preview.php

index f45199477b9597b7e89c7cbc1b29598848333f85..a5acadf65aa901440f50cf672c3c946ac2b6fe85 100644 (file)
         $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) {