Fixing up any references to obsolete language pack ma_nt

This commit is contained in:
moodler 2004-11-15 09:34:04 +00:00
parent db82c8dd7c
commit bb043e3843
3 changed files with 11 additions and 1 deletions

View file

@ -874,6 +874,11 @@ function main_upgrade($oldversion=0) {
) TYPE=MyISAM COMMENT='Optional database session storage, not used by default';"); ) TYPE=MyISAM COMMENT='Optional database session storage, not used by default';");
} }
if ($oldversion < 2004111500) { // 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; return $result;
} }

View file

@ -613,6 +613,11 @@ function main_upgrade($oldversion=0) {
execute_sql(" CREATE INDEX {$CFG->prefix}sessions_expiry_idx ON {$CFG->prefix}sessions (expiry)"); execute_sql(" CREATE INDEX {$CFG->prefix}sessions_expiry_idx ON {$CFG->prefix}sessions (expiry)");
} }
if ($oldversion < 2004111500) { // 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; return $result;
} }

View file

@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine // This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php) // whether upgrades should be performed (see lib/db/*.php)
$version = 2004111200; // YYYYMMDD = date of first major branch release 1.4 $version = 2004111500; // YYYYMMDD = date of first major branch release 1.4
// XY = increments within a single day // XY = increments within a single day
$release = '1.5 UNSTABLE DEVELOPMENT'; // Human-friendly version name $release = '1.5 UNSTABLE DEVELOPMENT'; // Human-friendly version name