mirror of
https://github.com/friendica/friendica
synced 2025-04-28 12:24:23 +02:00
Move Config::get() to DI::config()->get()
This commit is contained in:
parent
5d294e8be8
commit
6c36fd9e01
126 changed files with 581 additions and 596 deletions
|
@ -151,7 +151,7 @@ class FKOAuthDataStore extends OAuthDataStore
|
|||
$ret = null;
|
||||
|
||||
// get user for this verifier
|
||||
$uverifier = Config::get("oauth", $verifier);
|
||||
$uverifier = DI::config()->get("oauth", $verifier);
|
||||
Logger::log(__function__ . ":" . $verifier . "," . $uverifier);
|
||||
|
||||
if (is_null($verifier) || ($uverifier !== false)) {
|
||||
|
|
|
@ -109,7 +109,7 @@ class Probe
|
|||
$ssl_url = "https://".$host."/.well-known/host-meta";
|
||||
$url = "http://".$host."/.well-known/host-meta";
|
||||
|
||||
$xrd_timeout = Config::get('system', 'xrd_timeout', 20);
|
||||
$xrd_timeout = DI::config()->get('system', 'xrd_timeout', 20);
|
||||
|
||||
Logger::log("Probing for ".$host, Logger::DEBUG);
|
||||
$xrd = null;
|
||||
|
@ -859,7 +859,7 @@ class Probe
|
|||
*/
|
||||
private static function webfinger($url, $type)
|
||||
{
|
||||
$xrd_timeout = Config::get('system', 'xrd_timeout', 20);
|
||||
$xrd_timeout = DI::config()->get('system', 'xrd_timeout', 20);
|
||||
|
||||
$curlResult = Network::curl($url, false, ['timeout' => $xrd_timeout, 'accept_content' => $type]);
|
||||
if ($curlResult->isTimeout()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue