-
Bug
-
Resolution: Fixed
-
Trivial
-
1.7
-
None
-
All
-
MOODLE_17_STABLE
-
MOODLE_17_STABLE
The import process exit at line 320 when :TYPE: indicating the start of the first question (generally line 2 or 3) is found
if (eregi(^:(TYPE/EOF):,$line)) {
// New Question or End of File
the code test for question components which are not found and exit. One simple way to correct this is to check that we are at least after the second line and replace by
if (eregi(^:(TYPE/EOF):,$line) and $nLineCounter > 2)
This will work also for files containing more than one question.
We need also to convert to utf8 before doing the analysis.
I propose the function utf8_encode_array() applied to $lines the array of $line.It is not in the current libs.
This was applied to french questions with accents that are not correctly decode without the utf8 conversion.
see the quizz forum for details and files
- will help resolve
-
MDL-7184 Multiple Quiz Import Formats not Working
-
- Closed
-