diff --git a/mod/lti/lang/en/lti.php b/mod/lti/lang/en/lti.php index f913f1d8bc4..11391c1ce88 100644 --- a/mod/lti/lang/en/lti.php +++ b/mod/lti/lang/en/lti.php @@ -70,7 +70,6 @@ $string['addnewapp'] = 'Enable external application'; $string['addserver'] = 'Add new trusted server'; $string['addtype'] = 'Add preconfigured tool'; $string['allow'] = 'Allow'; -$string['allowinstructorcustom'] = 'Allow teachers to add custom parameters'; $string['allowsetting'] = 'Allow tool to store 8K of settings in Moodle'; $string['always'] = 'Always'; $string['automatic'] = 'Automatic, based on tool URL'; diff --git a/mod/lti/locallib.php b/mod/lti/locallib.php index 3bf73d3be15..13ca7c5bc5f 100644 --- a/mod/lti/locallib.php +++ b/mod/lti/locallib.php @@ -567,11 +567,9 @@ function lti_build_custom_parameters($toolproxy, $tool, $instance, $params, $cus if ($customstr) { $custom = lti_split_custom_parameters($toolproxy, $tool, $params, $customstr, $islti2); } - if (!isset($typeconfig['allowinstructorcustom']) || $typeconfig['allowinstructorcustom'] != LTI_SETTING_NEVER) { - if ($instructorcustomstr) { - $custom = array_merge(lti_split_custom_parameters($toolproxy, $tool, $params, - $instructorcustomstr, $islti2), $custom); - } + if ($instructorcustomstr) { + $custom = array_merge(lti_split_custom_parameters($toolproxy, $tool, $params, + $instructorcustomstr, $islti2), $custom); } if ($islti2) { $custom = array_merge(lti_split_custom_parameters($toolproxy, $tool, $params,