mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:10:16 +00:00
Replace addon "last" config entries with key-value entries
This commit is contained in:
parent
b227d65dfc
commit
1ed67fba3d
2 changed files with 12 additions and 5 deletions
|
@ -2145,7 +2145,7 @@ class GServer
|
|||
*/
|
||||
private static function discoverFederation()
|
||||
{
|
||||
$last = DI::config()->get('poco', 'last_federation_discovery');
|
||||
$last = DI::keyValue()->get('poco_last_federation_discovery');
|
||||
|
||||
if ($last) {
|
||||
$next = $last + (24 * 60 * 60);
|
||||
|
@ -2189,7 +2189,7 @@ class GServer
|
|||
}
|
||||
}
|
||||
|
||||
DI::config()->set('poco', 'last_federation_discovery', time());
|
||||
DI::keyValue()->set('poco_last_federation_discovery', time());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue