Skip to content

Commit

Permalink
Update EventDispatcher.php
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Nov 16, 2024
1 parent 2674245 commit be7a20c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Core/Events/EventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ public static function add_event_listener(
$eventName = "leantime.*.".($eventParts[$count-2] ?? '').".".($eventParts[$count-1] ?? '');
}

if($eventName == "leantime.core.*.afterFooterOpen") {
$eventName = "leantime.*.afterFooterOpen";
}

if (! array_key_exists($eventName, self::$eventRegistry)) {
self::$eventRegistry[$eventName] = [];
}
Expand Down

0 comments on commit be7a20c

Please sign in to comment.