Skip to content

Commit

Permalink
IOMAD: OIDC missing some global vars
Browse files Browse the repository at this point in the history
  • Loading branch information
turf212 committed Oct 17, 2023
1 parent 8ca0eb9 commit 1460221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion auth/iomadoidc/classes/iomadoidcclient.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public function rocredsrequest($username, $password) {
* @return array Received parameters.
*/
public function tokenrequest($code) {
$CFG;
global $CFG;

// IOMAD
require_once($CFG->dirroot . '/local/iomad/lib/company.php');
Expand Down
1 change: 1 addition & 0 deletions auth/iomadoidc/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ function auth_iomadoidc_get_email_remote_fields() {
* @return array
*/
function auth_iomadoidc_get_field_mappings() {
global $CFG;

// IOMAD
require_once($CFG->dirroot . '/local/iomad/lib/company.php');
Expand Down

0 comments on commit 1460221

Please sign in to comment.