Merge branch 'master_MDL-44548' of git://github.com/danmarsden/moodle
authorDavid Monllao <davidm@moodle.com>
Mon, 16 Mar 2015 02:04:14 +0000 (10:04 +0800)
committerDavid Monllao <davidm@moodle.com>
Mon, 16 Mar 2015 02:04:14 +0000 (10:04 +0800)
mod/scorm/locallib.php

index c660c07..67d8ea7 100644 (file)
@@ -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 '.