]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed locale problem (being overwritten by current locale)
authormoodler <moodler>
Mon, 25 Aug 2003 17:30:08 +0000 (17:30 +0000)
committermoodler <moodler>
Mon, 25 Aug 2003 17:30:08 +0000 (17:30 +0000)
admin/config.php

index 6685df57a4d12cc67c8f676c2d3860d0383973d7..2a5c754962a89ad05af919991bc0e3552258dbc6 100644 (file)
@@ -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 = "";