From d367b64be3b03c646d27ed2be967172c45f3b120 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Fri, 5 Jan 2007 11:55:01 +0000 Subject: [PATCH] MDL-6769 and http://moodle.org/mod/forum/discuss.php?d=60209 the default for shuffleanswers is now set to the configured value. --- question/format.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/question/format.php b/question/format.php index 535b345d802..e72458d82e5 100644 --- a/question/format.php +++ b/question/format.php @@ -230,8 +230,10 @@ class qformat_default { // Somewhere to specify question parameters that are not handled // by import but are required db fields. // This should not be overridden. + global $CFG; + $question = new stdClass(); - $question->shuffleanswers = 0; + $question->shuffleanswers = $CFG->quiz_shuffleanswers; $question->defaultgrade = 1; $question->image = ""; $question->usecase = 0;