Skip to content

Commit

Permalink
Merge branch 'master_MDL-60276' of https://github.com/CengageEng/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Oct 11, 2017
2 parents 0a073e9 + 4325a4d commit 5443212
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions mod/lti/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -889,12 +889,7 @@ function lti_tool_configuration_from_content_item($typeid, $messagetype, $ltiver
}
if (isset($item->url)) {
$url = new moodle_url($item->url);
// Assign item URL to securetoolurl or toolurl depending on its scheme.
if (strtolower($url->get_scheme()) === 'https') {
$config->securetoolurl = $url->out(false);
} else {
$config->toolurl = $url->out(false);
}
$config->toolurl = $url->out(false);
$config->typeid = 0;
} else {
$config->typeid = $typeid;
Expand Down

0 comments on commit 5443212

Please sign in to comment.