Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-5750

$scorm->datadir var not set correctly when creating new SCORM object

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: None
    • Component/s: SCORM
    • Labels:
      None
    • Environment:
      Windows 2000
    • Affected Branches:
      MOODLE_16_STABLE

      Description

      there seems to be a few people experiencing this in the forums. in the file scorm/lib.php when scorm_update_instance is called $scorm->datadir does not contain any information so when the line:

      rename($scorm->dir.$scorm->datadir,$scorm->dir.'/'.$scorm->id);

      is called an error permission denied is given becuase it is trying to rename the moddata\scorm directory to moddata\scorm\1 instead of renaming moddata\scorm\tempdirname to moddata\scorm\1

      will try to debug and post fix here.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: