mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Fixing up any references to obsolete language pack ma_nt
This commit is contained in:
parent
db82c8dd7c
commit
bb043e3843
3 changed files with 11 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue