mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
[various] Remove App dependency from hook functions
This commit is contained in:
parent
b53914ee11
commit
39c654da00
87 changed files with 419 additions and 451 deletions
|
@ -18,7 +18,7 @@ function leistungsschutzrecht_install()
|
|||
Hook::register('page_info_data', 'addon/leistungsschutzrecht/leistungsschutzrecht.php', 'leistungsschutzrecht_getsiteinfo');
|
||||
}
|
||||
|
||||
function leistungsschutzrecht_getsiteinfo(App $a, array &$siteinfo) {
|
||||
function leistungsschutzrecht_getsiteinfo(array &$siteinfo) {
|
||||
if (!isset($siteinfo['url']) || empty($siteinfo['type'])) {
|
||||
return;
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ function leistungsschutzrecht_is_member_site(string $url): bool
|
|||
return isset($sites[$site]);
|
||||
}
|
||||
|
||||
function leistungsschutzrecht_cron(App $a, $b)
|
||||
function leistungsschutzrecht_cron($b)
|
||||
{
|
||||
$last = DI::keyValue()->get('leistungsschutzrecht_last_poll');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue