MDL-60253 lti: also consider securetoolurl for URL match
This commit is contained in:
@@ -103,7 +103,12 @@ function lti_get_launch_data($instance) {
|
||||
if ($tool) {
|
||||
$typeid = $tool->id;
|
||||
} else {
|
||||
$typeid = null;
|
||||
$tool = lti_get_tool_by_url_match($instance->securetoolurl, $instance->course);
|
||||
if ($tool) {
|
||||
$typeid = $tool->id;
|
||||
} else {
|
||||
$typeid = null;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$typeid = $instance->typeid;
|
||||
|
||||
Reference in New Issue
Block a user