Merge branch 'MDL-49187-27' of https://github.com/spvickers/moodle into MOODLE_27_STABLE
This commit is contained in:
+3
-2
@@ -64,8 +64,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();
|
||||
|
||||
Reference in New Issue
Block a user