Skip to content

Commit

Permalink
Fixing up any references to obsolete language pack ma_nt
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Nov 15, 2004
1 parent db82c8d commit bb043e3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/db/mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

}
Expand Down
5 changes: 5 additions & 0 deletions lib/db/postgres7.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb043e3

Please sign in to comment.