mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Fixed locale problem (being overwritten by current locale)
This commit is contained in:
parent
e02ff1427e
commit
0ff42b0fc9
1 changed files with 3 additions and 0 deletions
|
@ -56,6 +56,9 @@
|
|||
|
||||
if (empty($config)) {
|
||||
$config = $CFG;
|
||||
if (!$config->locale = get_field("config", "value", "name", "locale")) {
|
||||
$config->locale = $CFG->lang;
|
||||
}
|
||||
}
|
||||
if (empty($focus)) {
|
||||
$focus = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue