From d90fb7fa6886bc5339aee2c7bc1395b14e7a9a50 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sun, 7 May 2023 10:54:47 +0200 Subject: [PATCH] fix mysql-pdo check on installation, set version to 2.0.18 for bugfix release Signed-off-by: Michael Kaufmann --- install/froxlor.sql.php | 4 ++-- install/updates/froxlor/update_2.x.inc.php | 5 +++++ lib/Froxlor/Froxlor.php | 2 +- lib/Froxlor/Install/Install.php | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/install/froxlor.sql.php b/install/froxlor.sql.php index e2ad81eb..9013fd5c 100644 --- a/install/froxlor.sql.php +++ b/install/froxlor.sql.php @@ -697,7 +697,7 @@ opcache.validate_timestamps'), ('system', 'distribution', ''), ('system', 'update_channel', 'stable'), ('system', 'updatecheck_data', ''), - ('system', 'update_notify_last', '2.0.17'), + ('system', 'update_notify_last', '2.0.18'), ('system', 'traffictool', 'goaccess'), ('system', 'req_limit_per_interval', 60), ('system', 'req_limit_interval', 60), @@ -744,7 +744,7 @@ opcache.validate_timestamps'), ('panel', 'logo_overridetheme', '0'), ('panel', 'logo_overridecustom', '0'), ('panel', 'settings_mode', '0'), - ('panel', 'version', '2.0.17'), + ('panel', 'version', '2.0.18'), ('panel', 'db_version', '202304260'); diff --git a/install/updates/froxlor/update_2.x.inc.php b/install/updates/froxlor/update_2.x.inc.php index 5e9a9872..b05eb136 100644 --- a/install/updates/froxlor/update_2.x.inc.php +++ b/install/updates/froxlor/update_2.x.inc.php @@ -482,3 +482,8 @@ if (Froxlor::isFroxlorVersion('2.0.16')) { Update::showUpdateStep("Updating from 2.0.16 to 2.0.17", false); Froxlor::updateToVersion('2.0.17'); } + +if (Froxlor::isFroxlorVersion('2.0.18')) { + Update::showUpdateStep("Updating from 2.0.17 to 2.0.18", false); + Froxlor::updateToVersion('2.0.18'); +} diff --git a/lib/Froxlor/Froxlor.php b/lib/Froxlor/Froxlor.php index b3087fc1..d7e20bcc 100644 --- a/lib/Froxlor/Froxlor.php +++ b/lib/Froxlor/Froxlor.php @@ -31,7 +31,7 @@ final class Froxlor { // Main version variable - const VERSION = '2.0.17'; + const VERSION = '2.0.18'; // Database version (YYYYMMDDC where C is a daily counter) const DBVERSION = '202304260'; diff --git a/lib/Froxlor/Install/Install.php b/lib/Froxlor/Install/Install.php index 80944b3a..cd21c177 100644 --- a/lib/Froxlor/Install/Install.php +++ b/lib/Froxlor/Install/Install.php @@ -42,7 +42,7 @@ class Install public $phpVersion; public $formfield; public string $requiredVersion = '7.4.0'; - public array $requiredExtensions = ['session', 'ctype', 'mysql', 'xml', 'filter', 'posix', 'mbstring', 'curl', 'gmp', 'json', 'gd']; + public array $requiredExtensions = ['session', 'ctype', 'pdo', 'xml', 'filter', 'posix', 'mbstring', 'curl', 'gmp', 'json', 'gd']; public array $suggestedExtensions = ['bcmath', 'zip']; public array $suggestions = []; public array $criticals = [];