Skip to content

Commit 90681fa

Browse files
authored
Merge pull request #457 from Hanashi/fix-wrong-call
Fix wrong call for acp dashboard boxes
2 parents 01f5808 + 4ec92fd commit 90681fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/php/api/acp_dashboard_boxes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ return static function (): void {
4646
$eventHandler = EventHandler::getInstance();
4747

4848
$eventHandler->register(BoxCollecting::class, static function (BoxCollecting $event) {
49-
$event->register(\wcf\system\acp\dashboard\box\FooBox::class);
49+
$event->register(new \wcf\system\acp\dashboard\box\FooBox());
5050
});
5151
};
5252
```

0 commit comments

Comments
 (0)