Change to parsing to allow answers in any order - needs testing
This commit is contained in:
@@ -55,7 +55,11 @@ class quiz_file_format extends quiz_default_format {
|
||||
|
||||
|
||||
/// Parse the answers
|
||||
$answers = str_replace("=", "~=", $answertext);
|
||||
$answers = explode("~", $answertext);
|
||||
if (empty(trim($answers[0]))) {
|
||||
array_shift($answers);
|
||||
}
|
||||
|
||||
$countanswers = count($answers);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user