Update all references to obsolete ma_nt language pack to mi_nt
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user