Verified Commit acce6317 authored by David Beniamine's avatar David Beniamine
Browse files

Merge branch 'master' of...

Merge branch 'master' of into MOODLE_39_STABLE
parents 8de30d10 0b6f8348
......@@ -23,5 +23,6 @@ $isTeacher = has_capability('mod/labnbook:addinstance', $context);
$role = ($isTeacher ? 'teacher' : 'learner');
global $USER;
$url = $fetchInstitution->getRedirectUrl();
$token=$fetchInstitution->getBindingTokenForRedirect($returnUrl, $role, $USER);
$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$returnUrl";
$token=$fetchInstitution->getBindingTokenForRedirect($actual_link, $role, $USER);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment