Skip to content

Commit

Permalink
MDL-52975 mnet: Set system context on the MNet SSO landing page
Browse files Browse the repository at this point in the history
Without the context being explicitly set, debugging warning can be
displayed in certain rare situations.
  • Loading branch information
mudrd8mz committed Feb 4, 2016
1 parent 9d5d9c6 commit 1ef135e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions auth/mnet/land.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
$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();

Expand Down

0 comments on commit 1ef135e

Please sign in to comment.