diff --git a/mod/scorm/db/upgrade.php b/mod/scorm/db/upgrade.php index f2695db95e0..19a8f046d81 100644 --- a/mod/scorm/db/upgrade.php +++ b/mod/scorm/db/upgrade.php @@ -487,6 +487,22 @@ function xmldb_scorm_upgrade($oldversion) { /// scorm savepoint reached upgrade_mod_savepoint(true, 2010070800, 'scorm'); } + if ($oldversion < 2010092400) { + $count = $DB->count_records('scorm', array('scormtype'=>'external')); + if (!empty($count)) { + set_config('allowtypeexternal', '1', 'scorm'); + } + $count = $DB->count_records('scorm', array('scormtype'=>'localsync')); + if (!empty($count)) { + set_config('allowtypelocalsync', '1', 'scorm'); + } + $count = $DB->count_records('scorm', array('scormtype'=>'imsrepository')); + if (!empty($count)) { + set_config('allowtypeimsrepository', '1', 'scorm'); + } + /// scorm savepoint reached + upgrade_mod_savepoint(true, 2010092400, 'scorm'); + } return true; } diff --git a/mod/scorm/version.php b/mod/scorm/version.php index f75d723f0f0..43fcfe2c91d 100755 --- a/mod/scorm/version.php +++ b/mod/scorm/version.php @@ -6,7 +6,7 @@ ///////////////////////////////////////////////////////////////////////////////// -$module->version = 2010080300; // The (date) version of this module +$module->version = 2010092400; // The (date) version of this module $module->requires = 2010080300; // The version of Moodle that is required $module->cron = 300; // How often should cron check this module (seconds)?