MDL-6332 fixed proper storing of unicodedb flag - after config table creation

This commit is contained in:
skodak 2006-11-20 15:25:38 +00:00
parent c33e8ec8f7
commit 3733f1e6c4

View File

@ -146,8 +146,6 @@
// 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")) {
@ -158,6 +156,9 @@
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) {