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
@@ -838,6 +838,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;
}
+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;
}
+1 -1
View File
@@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
$version = 2004083126; // YYYYMMDD = date of first major branch release 1.4
$version = 2004083127; // YYYYMMDD = date of first major branch release 1.4
// X = point release version 1,2,3 etc
// Y = increments between point releases