Fix wrong call for acp dashboard boxes
authorPeter Lohse <hanashi@hanashi.eu>
Tue, 6 Aug 2024 13:15:34 +0000 (15:15 +0200)
committerPeter Lohse <hanashi@hanashi.eu>
Tue, 6 Aug 2024 13:15:34 +0000 (15:15 +0200)
docs/php/api/acp_dashboard_boxes.md

index c7f5e54da5ec7aa99a4c38c73a7ef3098ba69649..2f250f55f3fd240c2e771b0f39629229030c352c 100644 (file)
@@ -46,7 +46,7 @@ return static function (): void {
     $eventHandler = EventHandler::getInstance();
 
     $eventHandler->register(BoxCollecting::class, static function (BoxCollecting $event) {
-        $event->register(\wcf\system\acp\dashboard\box\FooBox::class);
+        $event->register(new \wcf\system\acp\dashboard\box\FooBox());
     });
 };
 ```