Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
bf36ee9b
Commit
bf36ee9b
authored
Jul 13, 2010
by
David Mudrak
Browse files
NOMDL MNet: Remote application like Mahara does not send user's lang attribute
parent
d33b19a5
Changes
1
Show whitespace changes
Inline
Side-by-side
auth/mnet/auth.php
View file @
bf36ee9b
...
...
@@ -256,7 +256,9 @@ class auth_plugin_mnet extends auth_plugin_base {
// 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
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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment