Skip to content

Commit

Permalink
Merge branch 'MDL-78578-402' of https://github.com/snake/moodle into …
Browse files Browse the repository at this point in the history
…MOODLE_402_STABLE
  • Loading branch information
HuongNV13 committed Jul 4, 2023
2 parents a52d5c9 + 9434b60 commit 86e27a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions enrol/lti/launch.php
Expand Up @@ -108,10 +108,12 @@
$legacyconsumersecrets ?? []
);

require_login(null, false);
global $USER, $CFG, $PAGE;
// Page URL must be set before the require_login check, so that things like policies can redirect back with the launchid.
$PAGE->set_url(new moodle_url('/enrol/lti/launch.php'), ['launchid' => $messagelaunch->getLaunchId()]);

require_login(null, false);
$PAGE->set_context(context_system::instance());
$PAGE->set_url(new moodle_url('/enrol/lti/launch.php'));
$PAGE->set_pagelayout('popup'); // Same layout as the tool.php page in Legacy 1.1/2.0 launches.
$PAGE->set_title(get_string('opentool', 'enrol_lti'));

Expand Down

0 comments on commit 86e27a7

Please sign in to comment.