From c76ac89f80bc2dd02f8ebb18d080a2bbeb20e6cb Mon Sep 17 00:00:00 2001 From: "Vervoort, Claude" Date: Wed, 27 Sep 2017 13:22:43 -0400 Subject: [PATCH] MDL-60253 lti: also consider securetoolurl for URL match --- mod/lti/locallib.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mod/lti/locallib.php b/mod/lti/locallib.php index 6d378e687de..013202d583c 100644 --- a/mod/lti/locallib.php +++ b/mod/lti/locallib.php @@ -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;