fix "Could not find class 'System'" exceptions

This commit is contained in:
Daniel Reichelt
2016-09-16 18:52:23 +02:00
parent 84ee5a2192
commit ec474e2b4c
3 changed files with 4 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ class lighttpd extends HttpConfigBase
$is_redirect = true;
// check whether froxlor uses Let's Encrypt and not cert is being generated yet
// or a renew is ongoing - disable redirect
if (System::Get('system.le_froxlor_enabled') && ($this->froxlorVhostHasLetsEncryptCert() == false || $this->froxlorVhostLetsEncryptNeedsRenew())) {
if (Settings::Get('system.le_froxlor_enabled') && ($this->froxlorVhostHasLetsEncryptCert() == false || $this->froxlorVhostLetsEncryptNeedsRenew())) {
$this->lighttpd_data[$vhost_filename] .= '# temp. disabled ssl-redirect due to Let\'s Encrypt certificate generation.' . PHP_EOL;
$is_redirect = false;
} else {