Merge branch 'm26_MDL-44938' of git://github.com/danmarsden/moodle into MOODLE_26_STABLE

This commit is contained in:
Marina Glancy
2014-04-08 08:54:14 +08:00
+1
View 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;