Update Czech users and courses to use new language pack

This commit is contained in:
moodler
2004-03-07 14:10:11 +00:00
parent 3b395d7acb
commit 7277e30684
3 changed files with 11 additions and 1 deletions
+5
View File
@@ -461,6 +461,11 @@ function main_upgrade($oldversion=0) {
}
}
if ($oldversion < 2004030701) { /// Because of the renaming of Czech language pack
modify_database("", "UPDATE prefix_user SET lang = 'cs' WHERE lang = 'cz'");
modify_database("", "UPDATE prefix_course SET lang = 'cs' WHERE lang = 'cz'");
}
return $result;
}