@@ -26,8 +26,8 @@ public function __invoke(ItemCollecting $event): void
2626 $ this ->addOptionItems ($ event );
2727 $ this ->addPackageItems ($ event );
2828 $ this ->addOtherItems ($ event );
29- $ this ->addDevtoolsItems ($ event );
3029 $ this ->addContactFormItems ($ event );
30+ $ this ->addDevtoolsItems ($ event );
3131
3232 $ this ->addUserItems ($ event );
3333 $ this ->addUserGroupItems ($ event );
@@ -97,7 +97,7 @@ private function addOptionItems(ItemCollecting $event): void
9797 ));
9898
9999 foreach ((new TopOptionCategoryCache ())->getCache () as $ optionCategory ) {
100- if (!$ optionCategory ->validateOptions () || $ optionCategory ->validatePermissions ()) {
100+ if (!$ optionCategory ->validateOptions () || ! $ optionCategory ->validatePermissions ()) {
101101 continue ;
102102 }
103103
@@ -114,7 +114,7 @@ private function addOptionItems(ItemCollecting $event): void
114114 }
115115 }
116116
117- private function addPackageItems (ItemCollecting $ event ): void
117+ private function addOtherItems (ItemCollecting $ event ): void
118118 {
119119 $ event ->register (new AcpMenuItem (
120120 'wcf.acp.menu.link.other ' ,
@@ -152,7 +152,7 @@ private function addPackageItems(ItemCollecting $event): void
152152 }
153153 }
154154
155- private function addOtherItems (ItemCollecting $ event ): void
155+ private function addPackageItems (ItemCollecting $ event ): void
156156 {
157157 $ event ->register (new AcpMenuItem (
158158 'wcf.acp.menu.link.package ' ,
@@ -330,7 +330,10 @@ private function addUserItems(ItemCollecting $event): void
330330 $ event ->register (new AcpMenuItem (
331331 'wcf.acp.menu.link.user.mail ' ,
332332 parentMenuItem: 'wcf.acp.menu.link.user.management ' ,
333- link: LinkHandler::getInstance ()->getControllerLink (\wcf \acp \form \UserMailForm::class)
333+ link: LinkHandler::getInstance ()->getControllerLink (
334+ \wcf \acp \form \UserMailForm::class,
335+ ['action ' => 'all ' ]
336+ )
334337 ));
335338 }
336339 if (WCF ::getSession ()->getPermission ('admin.user.canManageUserOption ' )) {
@@ -373,7 +376,10 @@ private function addUserGroupItems(ItemCollecting $event): void
373376 $ event ->register (new AcpMenuItem (
374377 'wcf.acp.menu.link.group.mail ' ,
375378 parentMenuItem: 'wcf.acp.menu.link.group ' ,
376- link: LinkHandler::getInstance ()->getControllerLink (\wcf \acp \form \UserMailForm::class),
379+ link: LinkHandler::getInstance ()->getControllerLink (
380+ \wcf \acp \form \UserMailForm::class,
381+ ['action ' => 'group ' ]
382+ ),
377383 ));
378384 }
379385
0 commit comments