mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Replace addon "last" config entries with key-value entries
This commit is contained in:
parent
84fd663a56
commit
73189581b0
3 changed files with 6 additions and 6 deletions
|
@ -164,7 +164,7 @@ function leistungsschutzrecht_is_member_site(string $url): bool
|
|||
|
||||
function leistungsschutzrecht_cron(App $a, $b)
|
||||
{
|
||||
$last = DI::config()->get('leistungsschutzrecht', 'last_poll');
|
||||
$last = DI::keyValue()->get('leistungsschutzrecht_last_poll');
|
||||
|
||||
if ($last) {
|
||||
$next = $last + 86400;
|
||||
|
@ -174,5 +174,5 @@ function leistungsschutzrecht_cron(App $a, $b)
|
|||
}
|
||||
}
|
||||
leistungsschutzrecht_fetchsites();
|
||||
DI::config()->set('leistungsschutzrecht', 'last_poll', time());
|
||||
DI::keyValue()->set('leistungsschutzrecht_last_poll', time());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue