1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 09:55:33 +02:00

MDL-76994 core_course: Fix version for weeks and topics course formats

This commit is contained in:
Ilya Tregubov 2023-04-17 10:58:38 +08:00
parent a9b4b297ac
commit 6bac910434
4 changed files with 6 additions and 6 deletions

@ -42,7 +42,7 @@ function xmldb_format_topics_upgrade($oldversion) {
// Automatically generated Moodle v4.1.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2023030700) {
if ($oldversion < 2022112801) {
// 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) {
@ -50,7 +50,7 @@ function xmldb_format_topics_upgrade($oldversion) {
} else {
set_config('indentation', 1, 'format_topics');
}
upgrade_plugin_savepoint(true, 2023030700, 'format', 'topics');
upgrade_plugin_savepoint(true, 2022112801, 'format', 'topics');
}
return true;

@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2023030700; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2022112801; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2022111800; // Requires this Moodle version.
$plugin->component = 'format_topics'; // Full name of the plugin (used for diagnostics).

@ -42,7 +42,7 @@ function xmldb_format_weeks_upgrade($oldversion) {
// Automatically generated Moodle v4.1.0 release upgrade line.
// Put any upgrade step following this.
if ($oldversion < 2023030700) {
if ($oldversion < 2022112801) {
// 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) {
@ -50,7 +50,7 @@ function xmldb_format_weeks_upgrade($oldversion) {
} else {
set_config('indentation', 1, 'format_weeks');
}
upgrade_plugin_savepoint(true, 2023030700, 'format', 'weeks');
upgrade_plugin_savepoint(true, 2022112801, 'format', 'weeks');
}
return true;

@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2023030700; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2022112801; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2022111800; // Requires this Moodle version.
$plugin->component = 'format_weeks'; // Full name of the plugin (used for diagnostics).