mirror of
https://github.com/moodle/moodle.git
synced 2025-03-31 05:52:51 +02:00
Merge branch 'MDL-60058-int-fix-1' of github.com:ryanwyllie/moodle
This commit is contained in:
commit
b35b588f00
@ -1950,7 +1950,9 @@ function mod_assign_core_calendar_event_action_shows_item_count(calendar_event $
|
||||
* @param stdClass|null $instance The module instance to get the range from
|
||||
*/
|
||||
function mod_assign_core_calendar_get_valid_event_timestart_range(\calendar_event $event, \stdClass $instance = null) {
|
||||
global $DB;
|
||||
global $CFG, $DB;
|
||||
|
||||
require_once($CFG->dirroot . '/mod/assign/locallib.php');
|
||||
|
||||
if (!$instance) {
|
||||
$instance = $DB->get_record('assign', ['id' => $event->instance]);
|
||||
@ -2016,7 +2018,9 @@ function mod_assign_core_calendar_validate_event_timestart(\calendar_event $even
|
||||
* @param \calendar_event $event
|
||||
*/
|
||||
function mod_assign_core_calendar_event_timestart_updated(\calendar_event $event) {
|
||||
global $DB;
|
||||
global $CFG, $DB;
|
||||
|
||||
require_once($CFG->dirroot . '/mod/assign/locallib.php');
|
||||
|
||||
if (empty($event->instance) || $event->modulename != 'assign') {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user