From 1ef135e77307fa8d0c3deebdb4c30ae0b0d5354f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Tue, 2 Feb 2016 21:01:45 +0100 Subject: [PATCH] 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. --- auth/mnet/land.php | 1 + 1 file changed, 1 insertion(+) diff --git a/auth/mnet/land.php b/auth/mnet/land.php index 59adbf31ce1..8be9cf395d6 100644 --- a/auth/mnet/land.php +++ b/auth/mnet/land.php @@ -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();