From a55cd86a4c3cc66037784c15b55cc81de69b3c20 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sun, 23 Oct 2022 20:43:21 +0200 Subject: [PATCH] adjust button styles in ssl- and dns-editor; don't show notice about pcntl when using --no-fork Signed-off-by: Michael Kaufmann --- dns_editor.php | 4 ++-- lib/Froxlor/Cron/Traffic/TrafficCron.php | 2 +- ssl_editor.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dns_editor.php b/dns_editor.php index 84b62e34..112e5195 100644 --- a/dns_editor.php +++ b/dns_editor.php @@ -125,7 +125,7 @@ UI::view('user/dns-editor.html.twig', [ 'listing' => Listing::format($collection, $dns_list_data, 'dns_list', ['domain_id' => $domain_id]), 'actions_links' => [ [ - 'class' => 'btn-secondary', + 'class' => 'btn-outline-secondary', 'href' => $linker->getLink([ 'section' => 'domains', 'page' => 'domains', @@ -136,7 +136,7 @@ UI::view('user/dns-editor.html.twig', [ 'icon' => 'fa-solid fa-pen' ], [ - 'class' => 'btn-secondary', + 'class' => 'btn-outline-primary', 'href' => $linker->getLink(['section' => 'domains', 'page' => 'domains']), 'label' => lng('menue.domains.domains'), 'icon' => 'fa-solid fa-globe' diff --git a/lib/Froxlor/Cron/Traffic/TrafficCron.php b/lib/Froxlor/Cron/Traffic/TrafficCron.php index 9d8a872e..cb79996b 100644 --- a/lib/Froxlor/Cron/Traffic/TrafficCron.php +++ b/lib/Froxlor/Cron/Traffic/TrafficCron.php @@ -78,7 +78,7 @@ class TrafficCron extends FroxlorCron // Fork failed return 1; } - } else { + } else if (!defined('CRON_NOFORK_FLAG')) { if (extension_loaded('pcntl')) { $msg = "PHP compiled with pcntl but pcntl_fork function is not available."; } else { diff --git a/ssl_editor.php b/ssl_editor.php index 21871190..d4b7bab3 100644 --- a/ssl_editor.php +++ b/ssl_editor.php @@ -97,7 +97,7 @@ if ($action == '' || $action == 'view') { 'editid' => $id, 'actions_links' => [ [ - 'class' => 'btn-secondary', + 'class' => 'btn-outline-secondary', 'href' => $linker->getLink([ 'section' => 'domains', 'page' => 'domains',