Skip to content

Commit

Permalink
NOMDL MNet: Remote application like Mahara does not send user's lang …
Browse files Browse the repository at this point in the history
…attribute
  • Loading branch information
mudrd8mz committed Jul 13, 2010
1 parent d33b19a commit bf36ee9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion auth/mnet/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ function confirm_mnet_session($token, $remotepeer) {

// the user may roam from Moodle 1.x where lang has _utf8 suffix
// also, make sure that the lang is actually installed, otherwise set site default
$remoteuser->lang = clean_param(str_replace('_utf8', '', $remoteuser->lang), PARAM_LANG);
if (isset($remoteuser->lang)) {
$remoteuser->lang = clean_param(str_replace('_utf8', '', $remoteuser->lang), PARAM_LANG);
}
if (empty($remoteuser->lang)) {
if (!empty($CFG->lang)) {
$remoteuser->lang = $CFG->lang;
Expand Down

0 comments on commit bf36ee9

Please sign in to comment.