From 5ab322ab1d77c90bcd907679e3e5352f0149338d Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Fri, 17 Feb 2023 13:19:48 +0100 Subject: [PATCH] remove unused required function parameter in nginx cron; set default value for function parameter in lighttpd cron Signed-off-by: Michael Kaufmann --- lib/Froxlor/Cron/Http/Lighttpd.php | 2 +- lib/Froxlor/Cron/Http/Nginx.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Froxlor/Cron/Http/Lighttpd.php b/lib/Froxlor/Cron/Http/Lighttpd.php index dc0f24c4..233236a0 100644 --- a/lib/Froxlor/Cron/Http/Lighttpd.php +++ b/lib/Froxlor/Cron/Http/Lighttpd.php @@ -567,7 +567,7 @@ class Lighttpd extends HttpConfigBase return $servernames_text; } - protected function getWebroot($domain, $ssl) + protected function getWebroot($domain, bool $ssl = false) { $webroot_text = ''; diff --git a/lib/Froxlor/Cron/Http/Nginx.php b/lib/Froxlor/Cron/Http/Nginx.php index 80fb1a23..e52de66d 100644 --- a/lib/Froxlor/Cron/Http/Nginx.php +++ b/lib/Froxlor/Cron/Http/Nginx.php @@ -616,7 +616,7 @@ class Nginx extends HttpConfigBase FileDir::mkDirWithCorrectOwnership($domain['customerroot'], $domain['documentroot'], $domain['guid'], $domain['guid'], true); $vhost_content .= $this->getLogFiles($domain); - $vhost_content .= $this->getWebroot($domain, $ssl_vhost); + $vhost_content .= $this->getWebroot($domain); if ($this->deactivated == false) { $vhost_content = $this->mergeVhostCustom($vhost_content, $this->createPathOptions($domain)) . "\n"; @@ -775,7 +775,7 @@ class Nginx extends HttpConfigBase return $logfiles_text; } - protected function getWebroot($domain, $ssl) + protected function getWebroot($domain) { $webroot_text = '';