Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
4431f1e
)
Merge branch 'MDL-58952' of https://github.com/scyrma/moodle
author
Dan Poltawski
<dan@moodle.com>
Tue, 20 Jun 2017 10:31:30 +0000
(11:31 +0100)
committer
Dan Poltawski
<dan@moodle.com>
Tue, 20 Jun 2017 10:31:30 +0000
(11:31 +0100)
admin/registration/forms.php
patch
|
blob
|
blame
|
history
diff --git
a/admin/registration/forms.php
b/admin/registration/forms.php
index
92b15e8
..
6e0b8a9
100644
(file)
--- a/
admin/registration/forms.php
+++ b/
admin/registration/forms.php
@@
-232,7
+232,7
@@
class site_registration_form extends moodleform {
}
$language = get_config('hub', 'site_language_' . $cleanhuburl);
if ($language === false) {
- $language =
current_language()
;
+ $language =
explode('_', current_language())[0]
;
}
$geolocation = get_config('hub', 'site_geolocation_' . $cleanhuburl);
$contactable = get_config('hub', 'site_contactable_' . $cleanhuburl);