Skip to content

Commit

Permalink
Fixing an issue with not sending the launch_presentation_return_url
Browse files Browse the repository at this point in the history
  • Loading branch information
scriby committed Apr 24, 2012
1 parent ead4f18 commit 1706e83
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions mod/lti/locallib.php
Expand Up @@ -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);
Expand Down

0 comments on commit 1706e83

Please sign in to comment.