Update all references to obsolete ma_nt language pack to mi_nt

This commit is contained in:
moodler
2004-11-15 09:31:18 +00:00
parent a95fb63fbe
commit 76cea3d68f
3 changed files with 11 additions and 1 deletions
+5
View File
@@ -572,6 +572,11 @@ function main_upgrade($oldversion=0) {
set_field('user', 'auth', 'manual', 'username', 'guest');
}
if ($oldversion < 2004083127) { // Update any users/courses using wrongly-named lang pack
execute_sql("UPDATE {$CFG->prefix}user SET lang = 'mi_nt' WHERE lang = 'ma_nt'");
execute_sql("UPDATE {$CFG->prefix}course SET lang = 'mi_nt' WHERE lang = 'ma_nt'");
}
return $result;
}