]> git.mjollnir.org Git - moodle.git/commitdiff
Using LOCALE defines, not strings
authormoodler <moodler>
Fri, 8 Nov 2002 01:33:04 +0000 (01:33 +0000)
committermoodler <moodler>
Fri, 8 Nov 2002 01:33:04 +0000 (01:33 +0000)
lib/setup.php

index 033c888dea34bafafccd2b2792c5f1718790f48c..dfa2af0ef1a8554d83c360380bb560990a318091 100644 (file)
@@ -66,9 +66,9 @@
     if (!$CFG->locale) {
         $CFG->locale = $CFG->lang; // Might work
     }
-    setlocale ("LC_TIME", $CFG->locale);
-    setlocale ("LC_CTYPE", $CFG->locale);
-    setlocale ("LC_COLLATE", $CFG->locale);
+    setlocale (LC_TIME, $CFG->locale);
+    setlocale (LC_CTYPE, $CFG->locale);
+    setlocale (LC_COLLATE, $CFG->locale);
 
 /// Reference code to remove magic quotes from everything ... just in case.
 /// If you have problems with slashes everywhere then you might want to