Permalink
Browse files

Fixing up any references to obsolete language pack ma_nt

  • Loading branch information...
moodler
moodler committed Nov 15, 2004
1 parent db82c8d commit bb043e3843de0a5a654f135edb57e085aac19eab
Showing with 11 additions and 1 deletion.
  1. +5 −0 lib/db/mysql.php
  2. +5 −0 lib/db/postgres7.php
  3. +1 −1 version.php
View
@@ -874,6 +874,11 @@ function main_upgrade($oldversion=0) {
) 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;
}
View
@@ -612,6 +612,11 @@ function main_upgrade($oldversion=0) {
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;
View
@@ -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 = 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
$release = '1.5 UNSTABLE DEVELOPMENT'; // Human-friendly version name

0 comments on commit bb043e3

Please sign in to comment.