Merge branch 'master_MDL-44938' of git://github.com/danmarsden/moodle
authorMarina Glancy <marina@moodle.com>
Tue, 8 Apr 2014 00:53:58 +0000 (08:53 +0800)
committerMarina Glancy <marina@moodle.com>
Tue, 8 Apr 2014 00:53:58 +0000 (08:53 +0800)
mod/scorm/db/upgrade.php

index aff8f2e..62321c6 100644 (file)
@@ -83,6 +83,7 @@ function xmldb_scorm_upgrade($oldversion) {
 
     // Remove old imsrepository type - convert any existing records to external type to help prevent major errors.
     if ($oldversion < 2013081301) {
+        require_once($CFG->dirroot . '/mod/scorm/lib.php');
         $scorms = $DB->get_recordset('scorm', array('scormtype' => 'imsrepository'));
         foreach ($scorms as $scorm) {
             $scorm->scormtype = SCORM_TYPE_EXTERNAL;