Skip to content

Commit

Permalink
MDL-44548 mod_scorm: force an external sync to check for updated files.
Browse files Browse the repository at this point in the history
also remove some globals no longer needed (not used in function or in required files.
  • Loading branch information
danmarsden committed Oct 10, 2014
1 parent 6597413 commit 2d9a4a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/scorm/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -848,9 +848,9 @@ function scorm_get_all_attempts($scormid, $userid) {
}

function scorm_view_display ($user, $scorm, $action, $cm) {
global $CFG, $DB, $PAGE, $OUTPUT, $COURSE;
global $CFG, $DB, $OUTPUT;

if ($scorm->scormtype != SCORM_TYPE_LOCAL && $scorm->updatefreq == SCORM_UPDATE_EVERYTIME) {
if ($scorm->updatefreq == SCORM_UPDATE_EVERYTIME) {
scorm_parse($scorm, false);
}

Expand Down Expand Up @@ -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 '.
Expand Down

0 comments on commit 2d9a4a5

Please sign in to comment.