From: Peter Lohse Date: Tue, 6 Aug 2024 13:15:34 +0000 (+0200) Subject: Fix wrong call for acp dashboard boxes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4ec92fddbb7e3bdf990f3c830254e86fbed49223;p=GitHub%2FWoltLab%2Fwoltlab.github.io.git Fix wrong call for acp dashboard boxes --- diff --git a/docs/php/api/acp_dashboard_boxes.md b/docs/php/api/acp_dashboard_boxes.md index c7f5e54d..2f250f55 100644 --- a/docs/php/api/acp_dashboard_boxes.md +++ b/docs/php/api/acp_dashboard_boxes.md @@ -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()); }); }; ```