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:
David Mudrák 2016-02-02 21:01:45 +01:00
parent 9d5d9c64ff
commit 1ef135e773

View File

@ -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();