From 27ec3eacb1330a5a2a279fbb87cb332c6af0a272 Mon Sep 17 00:00:00 2001 From: Christian Lewin Date: Wed, 29 Oct 2025 09:57:11 +0100 Subject: [PATCH] Update listener.php Notifications are also sent when account activation is set to "by admin". This is useful when used in conjunction with other extensions, like "Activation Justification". --- event/listener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event/listener.php b/event/listener.php index e0b564d..da2ab30 100644 --- a/event/listener.php +++ b/event/listener.php @@ -93,7 +93,7 @@ static public function getSubscribedEvents() public function ucp_register_welcome_email_before($event) { - if ($this->config['require_activation'] != USER_ACTIVATION_ADMIN) + if (in_array($this->config['require_activation'], array(USER_ACTIVATION_SELF, USER_ACTIVATION_ADMIN))) { // Get user_id $this->user_id = $event['user_id'];