mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 03:46:42 +02:00
MDL-63176 enrol_lti: Add $COURSE to global
Ensure that capabilities using $COURSE can be parsed.
This commit is contained in:
parent
4bd4b46070
commit
349ac5cbd7
1 changed files with 2 additions and 2 deletions
|
@ -1278,8 +1278,8 @@ function lti_get_custom_parameters($toolproxy, $tool, $params, $parameters) {
|
||||||
* @return string Parsed value of custom parameter
|
* @return string Parsed value of custom parameter
|
||||||
*/
|
*/
|
||||||
function lti_parse_custom_parameter($toolproxy, $tool, $params, $value, $islti2) {
|
function lti_parse_custom_parameter($toolproxy, $tool, $params, $value, $islti2) {
|
||||||
// This is required as {${$valarr[0]}->{$valarr[1]}}" may be using the USER var.
|
// This is required as {${$valarr[0]}->{$valarr[1]}}" may be using the USER or COURSE var.
|
||||||
global $USER;
|
global $USER, $COURSE;
|
||||||
|
|
||||||
if ($value) {
|
if ($value) {
|
||||||
if (substr($value, 0, 1) == '\\') {
|
if (substr($value, 0, 1) == '\\') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue