Fixed wrong "BaseUrl" class (=> "BaseURL")

This commit is contained in:
Philipp Holzer 2019-08-15 17:23:35 +02:00
parent 08be92a862
commit 734b63adba
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
2 changed files with 2 additions and 2 deletions

View file

@ -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");
}

View file

@ -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);
}
/**