MDL-60276 LTI Content Item: does not populate tool url when https

This commit is contained in:
ddelblanco
2017-09-28 09:51:58 -07:00
parent 469c46aa3a
commit 579b44ef14
+1 -6
View File
@@ -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;