Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LabNbook
LabNbook-Moodle
Commits
2fd5b893
Verified
Commit
2fd5b893
authored
Mar 16, 2021
by
David Beniamine
Browse files
Avoid duplicate wwwroot
parent
630de540
Changes
1
Hide whitespace changes
Inline
Side-by-side
user-binding.php
View file @
2fd5b893
...
...
@@ -23,5 +23,5 @@ $isTeacher = has_capability('mod/labnbook:addinstance', $context);
$role
=
(
$isTeacher
?
'teacher'
:
'learner'
);
global
$USER
;
$url
=
$fetchInstitution
->
getRedirectUrl
();
$token
=
$fetchInstitution
->
getBindingTokenForRedirect
(
$CFG
->
wwwroot
.
$returnUrl
,
$role
,
$USER
);
$token
=
$fetchInstitution
->
getBindingTokenForRedirect
(
$returnUrl
,
$role
,
$USER
);
redirect
(
$url
.
"?token="
.
$token
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment