fix for 5204

This commit is contained in:
toyomoyo 2006-04-18 09:05:07 +00:00
parent 5379d24992
commit 4e93938edb

View file

@ -686,12 +686,19 @@ function db_migrate2utf8(){ //Eloy: Perhaps some type of limit parameter here
//remove the cache file!
@unlink($CFG->dataroot.'/cache/languages');
// Regenerate some cached data
if ($db->dbtype == 'mysql') {
$db->Execute("SET NAMES 'utf8'");
} else if ($db->dbtype == 'postgres7') {
$db->Execute("SET NAMES 'utf8'");
}
rebuild_course_cache();
//set the final flag
migrate2utf8_set_config('unicodedb','true'); //this is the main flag for unicode db
// Regenerate some cached data
rebuild_course_cache();
}