Skip to content

Commit a0148ff

Browse files
committed
Deprecate hooks without standard prefixes
1 parent 45e7e71 commit a0148ff

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Sources/Actions/Who.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,9 @@ public static function determineActions(mixed $urls, string|bool $preferred_pref
376376
return [];
377377
}
378378

379+
IntegrationHook::call('integrate_who_allowed', [&self::$allowedActions]);
380+
381+
// This hook is depreated because it is missing the corerct prefix.
379382
IntegrationHook::call('who_allowed', [&self::$allowedActions]);
380383

381384
if (!\is_array($urls)) {
@@ -642,6 +645,9 @@ public static function determineActions(mixed $urls, string|bool $preferred_pref
642645
Db::$db->free_result($result);
643646
}
644647

648+
IntegrationHook::call('in0tegrate_whos_online_after', [&$url_list, &$data]);
649+
650+
// This hook is depreated because it is missing the corerct prefix.
645651
IntegrationHook::call('whos_online_after', [&$urls, &$data]);
646652

647653
if (!\is_array($urls)) {

0 commit comments

Comments
 (0)