MDL-44548 mod_scorm: force an external sync to check for updated files.

This commit is contained in:
Dan Marsden
2014-10-10 15:14:19 +13:00
parent dcf18dcec6
commit d159b4f18c
+2 -2
View File
@@ -830,7 +830,7 @@ function scorm_get_all_attempts($scormid, $userid) {
function scorm_view_display ($user, $scorm, $action, $cm) {
global $CFG, $DB, $PAGE, $OUTPUT, $COURSE;
if ($scorm->scormtype != SCORM_TYPE_LOCAL && $scorm->updatefreq == SCORM_UPDATE_EVERYTIME) {
if ($scorm->updatefreq == SCORM_UPDATE_EVERYTIME) {
scorm_parse($scorm, false);
}
@@ -931,7 +931,7 @@ function scorm_simple_play($scorm, $user, $context, $cmid) {
return $result;
}
if ($scorm->scormtype != SCORM_TYPE_LOCAL && $scorm->updatefreq == SCORM_UPDATE_EVERYTIME) {
if ($scorm->updatefreq == SCORM_UPDATE_EVERYTIME) {
scorm_parse($scorm, false);
}
$scoes = $DB->get_records_select('scorm_scoes', 'scorm = ? AND '.