From 179fa1cae2c67188f805a7a69561f1d70290defa Mon Sep 17 00:00:00 2001 From: Benjamin Walker Date: Fri, 12 Apr 2024 15:42:31 +1000 Subject: [PATCH] Fix factor token version --- factor/token/version.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/factor/token/version.php b/factor/token/version.php index 07d557a4..e4a2c68c 100644 --- a/factor/token/version.php +++ b/factor/token/version.php @@ -26,9 +26,14 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2023101600; // The current plugin version (Date: YYYYMMDDXX). +$plugin->version = 2023080100; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2022041908; // Support Moodle 4.0 and higher. $plugin->component = 'factor_token'; $plugin->release = 2022011700; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = ['tool_mfa' => 2019102400]; + +// Fix version numbers that are higher than 4.3 core. +if (!during_initial_install() && (int) get_config('factor_token', 'version') >= 2023100900) { + set_config('version', '2023080100', 'factor_token'); +}