From 520c5e080b73292b3b9128e001787009855bbad5 Mon Sep 17 00:00:00 2001 From: Cory Buecker Date: Tue, 24 Jul 2018 12:23:45 -0500 Subject: [PATCH] MDL-62969 mod_lti: fix parsed value for LtiLink.memberships.url Fixes a typo in the function that replaces the LTI placeholder variable LtiLink.memberships.url with the actual endpoint. Without this change, the placeholder variable, "$LtiLink.memberships.url" is not replaced in the LTI launch parameters. --- .../memberships/classes/local/resources/linkmemberships.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/lti/service/memberships/classes/local/resources/linkmemberships.php b/mod/lti/service/memberships/classes/local/resources/linkmemberships.php index 621a3dd0a90..bcbb01ade8a 100644 --- a/mod/lti/service/memberships/classes/local/resources/linkmemberships.php +++ b/mod/lti/service/memberships/classes/local/resources/linkmemberships.php @@ -146,7 +146,7 @@ class linkmemberships extends resource_base { */ public function parse_value($value) { - if (strpos($value, '$ToolProxyBinding.memberships.url') !== false) { + if (strpos($value, '$LtiLink.memberships.url') !== false) { $id = optional_param('id', 0, PARAM_INT); // Course Module ID. if (!empty($id)) { $cm = get_coursemodule_from_id('lti', $id, 0, false, MUST_EXIST);