mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-46539 assign calendar: Fix lastcron value for assign cron
This commit is contained in:
parent
e609e6cf02
commit
abd0f0aec6
@ -906,6 +906,8 @@ function assign_cron() {
|
|||||||
$class::cron();
|
$class::cron();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1601,7 +1601,7 @@ class assign {
|
|||||||
// Only ever send a max of one days worth of updates.
|
// Only ever send a max of one days worth of updates.
|
||||||
$yesterday = time() - (24 * 3600);
|
$yesterday = time() - (24 * 3600);
|
||||||
$timenow = time();
|
$timenow = time();
|
||||||
$lastcron = $DB->get_field('modules', 'lastcron', array('name'=>'mod_assign'));
|
$lastcron = $DB->get_field('modules', 'lastcron', array('name' => 'assign'));
|
||||||
|
|
||||||
// Collect all submissions from the past 24 hours that require mailing.
|
// Collect all submissions from the past 24 hours that require mailing.
|
||||||
// Submissions are excluded if the assignment is hidden in the gradebook.
|
// Submissions are excluded if the assignment is hidden in the gradebook.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user