MDL-31652 SCORM - hide updatefreq setting and remove it if not required.

This commit is contained in:
Dan Marsden
2012-02-16 12:16:02 +13:00
parent 5fc420e2ed
commit 8aba9cda72
4 changed files with 27 additions and 24 deletions
+1 -1
View File
@@ -502,7 +502,7 @@ function scorm_cron () {
mtrace('Updating scorm packages which require daily update');//We are updating
$scormsupdate = $DB->get_records('scorm', array('updatefreq'=>UPDATE_EVERYDAY));
$scormsupdate = $DB->get_records_select('scorm', 'updatefreq = ? AND scormtype <> ?', array(SCORM_UPDATE_EVERYDAY, SCORM_TYPE_LOCAL));
foreach ($scormsupdate as $scormupdate) {
scorm_parse($scormupdate, true);
}