-
Sub-task
-
Resolution: Fixed
-
Minor
-
1.9
-
None
-
MOODLE_19_STABLE
-
MOODLE_19_STABLE
When importing question images, the script doesn't check if the destination directory for the image file exists. If the directory doesn't already exist, the copy() statement of the function fails silently and the affected images are not imported.
This patch checks if the image file is inside a subdirectory and creates it.