the config default parameter was deprecated

This commit is contained in:
Tobias Diekershoff 2022-11-06 13:21:05 +01:00
parent a9265220af
commit 594c17546b
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class CheckRelMeProfileLink
$homepageUrlVerified = false;
$owner = User::getOwnerDataById($uid);
if (!empty($owner['homepage'])) {
$xrd_timeout = DI::config()->get('system', 'xrd_timeout', 20);
$xrd_timeout = DI::config()->get('system', 'xrd_timeout' ?? 20);
$curlResult = DI::httpClient()->get($owner['homepage'], $accept_content = HttpClientAccept::HTML, [HttpClientOptions::TIMEOUT => $xrd_timeout]);
if ($curlResult->isSuccess()) {
$content = $curlResult->getBody();