mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
Revert "MDL-44548 mod_scorm: force an external sync to check for updated files."
This reverts commit 2d9a4a5f93169207a166d6d7a7426652e2bf83a1.
This commit is contained in:
parent
d8e909dc10
commit
e435f174d3
@ -848,9 +848,9 @@ function scorm_get_all_attempts($scormid, $userid) {
|
||||
}
|
||||
|
||||
function scorm_view_display ($user, $scorm, $action, $cm) {
|
||||
global $CFG, $DB, $OUTPUT;
|
||||
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);
|
||||
}
|
||||
|
||||
@ -952,7 +952,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 '.
|
||||
|
Loading…
x
Reference in New Issue
Block a user