mirror of
https://github.com/friendica/friendica
synced 2025-05-07 22:24:11 +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
|
@ -295,8 +295,8 @@ class PortableContact
|
|||
self::discoverServer($data, 2);
|
||||
}
|
||||
|
||||
if (Config::get('system', 'poco_discovery') >= self::USERS_GCONTACTS) {
|
||||
$timeframe = Config::get('system', 'poco_discovery_since');
|
||||
if (DI::config()->get('system', 'poco_discovery') >= self::USERS_GCONTACTS) {
|
||||
$timeframe = DI::config()->get('system', 'poco_discovery_since');
|
||||
|
||||
if ($timeframe == 0) {
|
||||
$timeframe = 30;
|
||||
|
@ -320,7 +320,7 @@ class PortableContact
|
|||
}
|
||||
}
|
||||
|
||||
if (!$success && !empty($data) && Config::get('system', 'poco_discovery') >= self::USERS_GCONTACTS_FALLBACK) {
|
||||
if (!$success && !empty($data) && DI::config()->get('system', 'poco_discovery') >= self::USERS_GCONTACTS_FALLBACK) {
|
||||
Logger::info("Fetch contacts from users of the server " . $server["nurl"]);
|
||||
self::discoverServerUsers($data, $server);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue