This commit is contained in:
Huong Nguyen 2024-11-28 11:03:30 +07:00 committed by Jun Pataleta
commit d08c982135
No known key found for this signature in database
GPG key ID: F83510526D99E2C7
130 changed files with 584 additions and 1267 deletions

View file

@ -31,20 +31,6 @@
function xmldb_format_topics_upgrade($oldversion) {
global $DB;
// Automatically generated Moodle v4.1.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2023030700) {
// For sites migrating from 4.0.x or 4.1.x where the indentation was removed,
// we are disabling 'indentation' value by default.
if ($oldversion >= 2022041900) {
set_config('indentation', 0, 'format_topics');
} else {
set_config('indentation', 1, 'format_topics');
}
upgrade_plugin_savepoint(true, 2023030700, 'format', 'topics');
}
// Automatically generated Moodle v4.2.0 release upgrade line.
// Put any upgrade step following this.

View file

@ -31,20 +31,6 @@
function xmldb_format_weeks_upgrade($oldversion) {
global $CFG, $DB;
// Automatically generated Moodle v4.1.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2023030700) {
// For sites migrating from 4.0.x or 4.1.x where the indentation was removed,
// we are disabling 'indentation' value by default.
if ($oldversion >= 2022041900) {
set_config('indentation', 0, 'format_weeks');
} else {
set_config('indentation', 1, 'format_weeks');
}
upgrade_plugin_savepoint(true, 2023030700, 'format', 'weeks');
}
// Automatically generated Moodle v4.2.0 release upgrade line.
// Put any upgrade step following this.