From 0b08aaeaf71878c2be247f9fb9378dca1fca97c2 Mon Sep 17 00:00:00 2001 From: Jonathan Champ Date: Wed, 1 Sep 2021 14:30:56 -0400 Subject: [PATCH] invitation: include invitation class when needed --- classes/webservice.php | 3 +++ settings.php | 1 + 2 files changed, 4 insertions(+) diff --git a/classes/webservice.php b/classes/webservice.php index 24293401..f5a9fb6b 100644 --- a/classes/webservice.php +++ b/classes/webservice.php @@ -685,6 +685,9 @@ public function get_meeting_webinar_info($id, $webinar) { * @link https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetinginvitation */ public function get_meeting_invitation($zoom) { + global $CFG; + require_once($CFG->dirroot . '/mod/zoom/classes/invitation.php'); + // Webinar does not have meeting invite info. if ($zoom->webinar) { return new \mod_zoom\invitation(null); diff --git a/settings.php b/settings.php index 6851af66..292299fa 100644 --- a/settings.php +++ b/settings.php @@ -30,6 +30,7 @@ if ($ADMIN->fulltree) { require_once($CFG->dirroot.'/mod/zoom/locallib.php'); require_once($CFG->dirroot.'/mod/zoom/classes/webservice.php'); + require_once($CFG->dirroot . '/mod/zoom/classes/invitation.php'); $moodlehashideif = version_compare(normalize_version($CFG->release), '3.7.0', '>=');