Skip to content

Commit d62a034

Browse files
authored
Merge pull request #9253 from live627/hooks
[3.0] Deprecate hooks without standard prefixes
2 parents 2d4a5e2 + 9d4a17c commit d62a034

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('integrate_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)