Allow A. B. C. in addition to A) B) C)

This commit is contained in:
moodler
2003-12-01 12:21:49 +00:00
parent 285b8f7fef
commit 79edc7f972
+1 -1
View File
@@ -50,7 +50,7 @@ class quiz_file_format extends quiz_default_format {
// This will show everyline when file is being processed
// print("$nowline<br>");
$leader = substr(ltrim($nowline),0,2);
if (strpos(",A),B),C),D),E),F),G),H),I),J)",$leader)>0){
if (strpos(".A)B)C)D)E)F)G)H)I)J)A.B.C.D.E.F.G.H.I.J.",$leader)>0){
//trim off the label and space
$question->answer[] = substr($nowline,3);
$question->fraction[] = 0;