diff --git a/mod/lti/view.php b/mod/lti/view.php index 4d0b8c41385..bfb9b1005d2 100644 --- a/mod/lti/view.php +++ b/mod/lti/view.php @@ -65,8 +65,9 @@ if ($l) { // Two ways to specify the module. $course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST); -$tool = lti_get_tool_by_url_match($lti->toolurl); -if ($tool) { +if (!empty($lti->typeid)) { + $toolconfig = lti_get_type_config($lti->typeid); +} else if ($tool = lti_get_tool_by_url_match($lti->toolurl)) { $toolconfig = lti_get_type_config($tool->id); } else { $toolconfig = array();