the config default parameter was deprecated
This commit is contained in:
parent
a9265220af
commit
594c17546b
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue