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-04 17:16:18 +01:00
parent 22fa1056d7
commit b704533f0a
+1
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();