Non-core contributed modules

Improve importing of question images

Details

  • Type: Sub-task Sub-task
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: 1.9.4
  • Component/s: Tool: WebCTImport
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

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.

Activity

Hide
Anthony Borrow added a comment -

Moving to the Tool: WebCTImport Component and assigning to Ashley

Show
Anthony Borrow added a comment - Moving to the Tool: WebCTImport Component and assigning to Ashley
Hide
Ashley Holman added a comment -

Fixed in latest CVS by UQAM contributions.

Show
Ashley Holman added a comment - Fixed in latest CVS by UQAM contributions.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: