mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 03:16:42 +02:00
Merge branch 'MDL-83470-main' of https://github.com/junpataleta/moodle
This commit is contained in:
commit
d08c982135
130 changed files with 584 additions and 1267 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue