Skip to content

Commit

Permalink
Add a new hook, integrate_online_stats
Browse files Browse the repository at this point in the history
Signed-off-by: Bugo <[email protected]>
dragomano committed Dec 24, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 4502804 commit 0fb8224
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Subs-MembersOnline.php
Original file line number Diff line number Diff line change
@@ -191,6 +191,8 @@ function getMembersOnlineStats($membersOnlineOptions)
// Hidden and non-hidden members make up all online members.
$membersOnlineStats['num_users_online'] = count($membersOnlineStats['users_online']) + $membersOnlineStats['num_users_hidden'] - (isset($modSettings['show_spider_online']) && $modSettings['show_spider_online'] > 1 ? count($spider_finds) : 0);

call_integration_hook('integrate_online_stats', array(&$membersOnlineStats));

return $membersOnlineStats;
}

0 comments on commit 0fb8224

Please sign in to comment.