From ea31c8a64dc15d3591a440ef9bf617c895ea162c Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sat, 30 Dec 2023 23:30:52 +0100 Subject: [PATCH] fix font-color in apcu info; clear updatecheck-cache for nightly users Signed-off-by: Michael Kaufmann --- composer.json | 2 +- lib/Froxlor/Install/AutoUpdate.php | 2 ++ templates/Froxlor/settings/apcuinfo.html.twig | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index f3d884fb..93302a77 100644 --- a/composer.json +++ b/composer.json @@ -57,7 +57,7 @@ "pear/net_dns2": "^1.5", "amnuts/opcache-gui": "^3.4", "league/commonmark": "^2.4" - }, + }, "require-dev": { "phpunit/phpunit": "^9", "ext-pcntl": "*", diff --git a/lib/Froxlor/Install/AutoUpdate.php b/lib/Froxlor/Install/AutoUpdate.php index 88b10c46..73f6e098 100644 --- a/lib/Froxlor/Install/AutoUpdate.php +++ b/lib/Froxlor/Install/AutoUpdate.php @@ -151,6 +151,8 @@ class AutoUpdate $zip->close(); // success - remove unused archive @unlink($localArchive); + // reset cached version check + Settings::Set('system.updatecheck_data', ''); // wait a bit before we redirect to be sure sleep(3); return 0; diff --git a/templates/Froxlor/settings/apcuinfo.html.twig b/templates/Froxlor/settings/apcuinfo.html.twig index 6a6f3600..f4df818b 100644 --- a/templates/Froxlor/settings/apcuinfo.html.twig +++ b/templates/Froxlor/settings/apcuinfo.html.twig @@ -24,7 +24,7 @@ aria-valuemin="0" aria-valuemax="{{ apcuinfo.mem_avail }}">
{{ apcuinfo.mem_used_percentage }} + class="justify-content-center d-flex position-absolute w-100">{{ apcuinfo.mem_used_percentage }} %