mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-52975 mnet: Set system context on the MNet SSO landing page
Without the context being explicitly set, debugging warning can be displayed in certain rare situations.
This commit is contained in:
parent
9d5d9c64ff
commit
1ef135e773
@ -35,6 +35,7 @@ $wantsremoteurl = optional_param('remoteurl', false, PARAM_BOOL);
|
||||
$url = new moodle_url('/auth/mnet/jump.php', array('token'=>$token, 'idp'=>$remotewwwroot, 'wantsurl'=>$wantsurl));
|
||||
if ($wantsremoteurl !== false) $url->param('remoteurl', $wantsremoteurl);
|
||||
$PAGE->set_url($url);
|
||||
$PAGE->set_context(context_system::instance());
|
||||
|
||||
$site = get_site();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user