Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing an issue with not sending the launch_presentation_return_url

  • Loading branch information...
commit 1706e83bb49b73aeffcf0869f7620575fb53aef0 1 parent ead4f18
@scriby scriby authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 mod/lti/locallib.php
View
18 mod/lti/locallib.php
@@ -162,17 +162,17 @@ function lti_view($instance) {
if (empty($key) || empty($secret)) {
$returnurlparams['unsigned'] = '1';
+ }
+
+ //Add the return URL. We send the launch container along to help us avoid frames-within-frames when the user returns
+ $url = new moodle_url('/mod/lti/return.php', $returnurlparams);
+ $returnurl = $url->out(false);
- //Add the return URL. We send the launch container along to help us avoid frames-within-frames when the user returns
- $url = new moodle_url('/mod/lti/return.php', $returnurlparams);
- $returnurl = $url->out(false);
-
- if ($typeconfig['forcessl'] == '1') {
- $returnurl = lti_ensure_url_is_https($returnurl);
- }
-
- $requestparams['launch_presentation_return_url'] = $returnurl;
+ if ($typeconfig['forcessl'] == '1') {
+ $returnurl = lti_ensure_url_is_https($returnurl);
}
+
+ $requestparams['launch_presentation_return_url'] = $returnurl;
if (!empty($key) && !empty($secret)) {
$parms = lti_sign_parameters($requestparams, $endpoint, "POST", $key, $secret);
Please sign in to comment.
Something went wrong with that request. Please try again.