Skip to content

Commit 2fdd422

Browse files
committed
MDL-84652 core: Properly uninstall mnetservice_enrol
1 parent d23870b commit 2fdd422

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

lib/db/upgrade.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -1503,15 +1503,6 @@ function xmldb_main_upgrade($oldversion) {
15031503
upgrade_main_savepoint(true, 2025030500.01);
15041504
}
15051505

1506-
// Remove mnetservice_enrol.
1507-
if ($oldversion < 2025030600.01) {
1508-
if (!file_exists($CFG->dirroot . "/mnetservice/enrol/version.php")) {
1509-
uninstall_plugin('mnetservice', 'enrol');
1510-
}
1511-
// Main savepoint reached.
1512-
upgrade_main_savepoint(true, 2025030600.01);
1513-
}
1514-
15151506
// Remove portfolio_mahara.
15161507
if ($oldversion < 2025030600.02) {
15171508
if (!file_exists($CFG->dirroot . "/portfolio/mahara/version.php")) {
@@ -1592,5 +1583,14 @@ function xmldb_main_upgrade($oldversion) {
15921583
upgrade_main_savepoint(true, 2025030600.07);
15931584
}
15941585

1586+
// Remove mnetservice_enrol.
1587+
if ($oldversion < 2025030600.08) {
1588+
if (!file_exists($CFG->dirroot . "/mnet/service/enrol/version.php")) {
1589+
uninstall_plugin('mnetservice', 'enrol');
1590+
}
1591+
// Main savepoint reached.
1592+
upgrade_main_savepoint(true, 2025030600.08);
1593+
}
1594+
15951595
return true;
15961596
}

version.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
defined('MOODLE_INTERNAL') || die();
3131

32-
$version = 2025030600.07; // YYYYMMDD = weekly release date of this DEV branch.
32+
$version = 2025030600.08; // YYYYMMDD = weekly release date of this DEV branch.
3333
// RR = release increments - 00 in DEV branches.
3434
// .XX = incremental changes.
3535
$release = '5.0dev+ (Build: 20250304)'; // Human-friendly version name

0 commit comments

Comments
 (0)