Skip to content

Commit 17438fa

Browse files
committed
Fix factor token version
1 parent 9b7c45b commit 17438fa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

factor/token/version.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,14 @@
2626

2727
defined('MOODLE_INTERNAL') || die();
2828

29-
$plugin->version = 2023101600; // The current plugin version (Date: YYYYMMDDXX).
29+
$plugin->version = 2023080100; // The current plugin version (Date: YYYYMMDDXX).
3030
$plugin->requires = 2022041908; // Support Moodle 4.0 and higher.
3131
$plugin->component = 'factor_token';
3232
$plugin->release = 2022011700;
3333
$plugin->maturity = MATURITY_STABLE;
3434
$plugin->dependencies = ['tool_mfa' => 2019102400];
35+
36+
// Fix version numbers that are higher than 4.3 core.
37+
if (!during_initial_install() && get_config('factor_token', 'version') >= '2023100900') {
38+
set_config('version', $plugin->version, 'factor_token');
39+
}

0 commit comments

Comments
 (0)