@@ -63,14 +63,14 @@ public function requestGroup(?bool $send_mail_to_admins = null, bool $send_mail
6363 }
6464 }
6565
66- public function deactivate (bool $ send_mail = true ): void
66+ public function disable (bool $ send_mail = true ): void
6767 {
68- $ this ->SQL ->addLog ("deactivate_pi_group " , $ this ->gid );
68+ $ this ->SQL ->addLog ("disable_pi_group " , $ this ->gid );
6969 $ memberuids = $ this ->getMemberUIDs ();
7070 if ($ send_mail ) {
7171 $ member_attributes = $ this ->LDAP ->getUsersAttributes ($ memberuids , ["mail " ]);
7272 $ member_mails = array_map (fn ($ x ) => $ x ["mail " ][0 ], $ member_attributes );
73- $ this ->MAILER ->sendMail ($ member_mails , "group_deactivated " , [
73+ $ this ->MAILER ->sendMail ($ member_mails , "group_disabled " , [
7474 "group_name " => $ this ->gid ,
7575 ]);
7676 }
@@ -89,11 +89,11 @@ public function deactivate(bool $send_mail = true): void
8989 // }
9090 }
9191
92- private function reactivate (bool $ send_mail = true )
92+ private function reenable (bool $ send_mail = true )
9393 {
94- $ this ->SQL ->addLog ("reactivated_pi_group " , $ this ->gid );
94+ $ this ->SQL ->addLog ("reenabled_pi_group " , $ this ->gid );
9595 if ($ send_mail ) {
96- $ this ->MAILER ->sendMail ($ this ->getOwner ()->getMail (), "group_reactivated " , [
96+ $ this ->MAILER ->sendMail ($ this ->getOwner ()->getMail (), "group_reenabled " , [
9797 "group_name " => $ this ->gid ,
9898 ]);
9999 }
@@ -117,7 +117,7 @@ public function approveGroup(bool $send_mail = true): void
117117 if (!$ this ->entry ->exists ()) {
118118 $ this ->init ();
119119 } elseif ($ this ->getIsDefunct ()) {
120- $ this ->reactivate ();
120+ $ this ->reenable ();
121121 } else {
122122 throw new Exception ("cannot approve group that already exists and is not defunct " );
123123 }
@@ -236,7 +236,7 @@ public function removeUser(UnityUser $new_user, bool $send_mail = true): void
236236 return ;
237237 }
238238 if ($ new_user ->uid == $ this ->getOwner ()->uid ) {
239- throw new Exception ("Cannot delete group owner from group. Deactivate group instead " );
239+ throw new Exception ("Cannot delete group owner from group. Disable group instead " );
240240 }
241241 // remove request, this will fail silently if the request doesn't exist
242242 $ this ->removeMemberUID ($ new_user ->uid );
0 commit comments