]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-6332 fixed proper storing of unicodedb flag - after config table creation
authorskodak <skodak>
Mon, 20 Nov 2006 15:25:38 +0000 (15:25 +0000)
committerskodak <skodak>
Mon, 20 Nov 2006 15:25:38 +0000 (15:25 +0000)
admin/index.php

index 26fb7c96eb4535975cc917cc55187c2a9e4ed399..fecf7fedd46a0d655d3cc5e19df16704f6826879 100644 (file)
             // If could not convert successfully, throw error, and prevent installation
             print_error('unicoderequired', 'admin');  
         }
-        // all new installs are in unicode - keep for backwards compatibility and 1.8 upgrade checks
-        set_config('unicodedb', 1);
     
         $status = false;
         if (file_exists("$CFG->libdir/db/install.xml")) {
             error("Error: Your database ($CFG->dbtype) is not yet fully supported by Moodle or install.xml is not present.  See the lib/db directory.");
         }
 
+        // all new installs are in unicode - keep for backwards compatibility and 1.8 upgrade checks
+        set_config('unicodedb', 1);
+
     /// Continue with the instalation
         $db->debug = false;
         if ($status) {