From: Philipp Holzer Date: Thu, 15 Aug 2019 15:23:35 +0000 (+0200) Subject: Fixed wrong "BaseUrl" class (=> "BaseURL") X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=734b63adbaec009c08339d7ca243251964c8b6ef;p=friendica.git Fixed wrong "BaseUrl" class (=> "BaseURL") --- diff --git a/src/App.php b/src/App.php index 0a7bab0e16..bb6d2a6e3a 100644 --- a/src/App.php +++ b/src/App.php @@ -1131,7 +1131,7 @@ class App header("X-Friendica-Version: " . FRIENDICA_VERSION); header("Content-type: text/html; charset=utf-8"); - if ($this->config->get('system', 'hsts') && ($this->baseURL->getSSLPolicy() == BaseUrl::SSL_POLICY_FULL)) { + if ($this->config->get('system', 'hsts') && ($this->baseURL->getSSLPolicy() == BaseURL::SSL_POLICY_FULL)) { header("Strict-Transport-Security: max-age=31536000"); } diff --git a/src/Core/Authentication.php b/src/Core/Authentication.php index e75cc93e7f..d68a3e683b 100644 --- a/src/Core/Authentication.php +++ b/src/Core/Authentication.php @@ -51,7 +51,7 @@ class Authentication extends BaseObject $value = ""; } - setcookie("Friendica", $value, $time, "/", "", (Config::get('system', 'ssl_policy') == BaseUrl::SSL_POLICY_FULL), true); + setcookie("Friendica", $value, $time, "/", "", (Config::get('system', 'ssl_policy') == App\BaseURL::SSL_POLICY_FULL), true); } /**