]> git.mjollnir.org Git - moodle.git/commitdiff
The file countries.php does not exist in lang/en, only in lang/en_utf8. Therefore...
authorgustav_delius <gustav_delius>
Sun, 3 Sep 2006 11:38:45 +0000 (11:38 +0000)
committergustav_delius <gustav_delius>
Sun, 3 Sep 2006 11:38:45 +0000 (11:38 +0000)
lib/moodlelib.php

index 6515274086a0c8abba430db52971aa91fce7a561..992cf453b20581e35f2c5f0b17f44ca716b24bda 100644 (file)
@@ -4508,12 +4508,6 @@ function get_list_of_countries() {
 
     $lang = current_language();
 
-    if (!empty($CFG->unicodedb)) {
-        $defaultlang = 'en_utf8';
-    } else {
-        $defaultlang = 'en';
-    }
-
     if (!file_exists($CFG->dirroot .'/lang/'. $lang .'/countries.php') &&
         !file_exists($CFG->dataroot.'/lang/'. $lang .'/countries.php')) {
         if ($parentlang = get_string('parentlanguage')) {
@@ -4521,10 +4515,10 @@ function get_list_of_countries() {
                 file_exists($CFG->dataroot.'/lang/'. $parentlang .'/countries.php')) {
                 $lang = $parentlang;
             } else {
-                $lang = $defaultlang;  // countries.php must exist in this pack
+                $lang = 'en_utf8';  // countries.php must exist in this pack
             }
         } else {
-            $lang = $defaultlang;  // countries.php must exist in this pack
+            $lang = 'en_utf8';  // countries.php must exist in this pack
         }
     }