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

This reverts commit 8af706e33b.
This commit is contained in:
Dan Poltawski
2014-10-17 09:31:29 +01:00
parent b41bcab492
commit c91ddd50e6
+2 -2
View File
@@ -840,7 +840,7 @@ function scorm_get_all_attempts($scormid, $userid) {
function scorm_view_display ($user, $scorm, $action, $cm) {
global $CFG, $DB, $PAGE, $OUTPUT, $COURSE;
if ($scorm->updatefreq == SCORM_UPDATE_EVERYTIME) {
if ($scorm->scormtype != SCORM_TYPE_LOCAL && $scorm->updatefreq == SCORM_UPDATE_EVERYTIME) {
scorm_parse($scorm, false);
}
@@ -941,7 +941,7 @@ function scorm_simple_play($scorm, $user, $context, $cmid) {
return $result;
}
if ($scorm->updatefreq == SCORM_UPDATE_EVERYTIME) {
if ($scorm->scormtype != SCORM_TYPE_LOCAL && $scorm->updatefreq == SCORM_UPDATE_EVERYTIME) {
scorm_parse($scorm, false);
}
$scoes = $DB->get_records_select('scorm_scoes', 'scorm = ? AND '.