Skip to content

Commit

Permalink
Merge pull request #299 from ncstate-delta/fix/invitation-class-not-f…
Browse files Browse the repository at this point in the history
…ound

invitation: include invitation class when needed
  • Loading branch information
jrchamp authored Sep 2, 2021
2 parents 5515dcc + 0b08aae commit 8203d47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/webservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', '>=');

Expand Down

0 comments on commit 8203d47

Please sign in to comment.