mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
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.
This commit is contained in:
parent
0180369b27
commit
520c5e080b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user