From f4650e1b3bcc3345695ff298ee60c6f17e8368c9 Mon Sep 17 00:00:00 2001 From: John Rayes Date: Thu, 4 Jun 2026 19:32:13 -0700 Subject: [PATCH] Deprecate hooks without standard prefixes --- Sources/Who.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/Who.php b/Sources/Who.php index b9b5012a80..b1dd620a0b 100644 --- a/Sources/Who.php +++ b/Sources/Who.php @@ -315,6 +315,9 @@ function determineActions($urls, $preferred_prefix = false) 'viewerrorlog' => array('admin_forum'), 'viewmembers' => array('moderate_forum'), ); + call_integration_hook('integrate_who_allowed', array(&$allowedActions)); + + // This hook is depreated because it is missing the corerct prefix. call_integration_hook('who_allowed', array(&$allowedActions)); if (!is_array($urls)) @@ -560,6 +563,9 @@ function determineActions($urls, $preferred_prefix = false) $smcFunc['db_free_result']($result); } + call_integration_hook('integrate_whos_online_after', array(&$url_list, &$data)); + + // This hook is depreated because it is missing the corerct prefix. call_integration_hook('whos_online_after', array(&$urls, &$data)); if (!is_array($urls))