mirror of
https://github.com/moodle/moodle.git
synced 2025-03-03 15:29:08 +01:00
Merge branch 'master_MDL-44548' of git://github.com/danmarsden/moodle
This commit is contained in:
commit
5f2747c866
@ -850,7 +850,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);
|
||||
}
|
||||
|
||||
@ -952,7 +952,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 '.
|
||||
|
Loading…
x
Reference in New Issue
Block a user