Link to forum from navigation, not user links, see #753

This commit is contained in:
Shish 2020-09-19 00:20:09 +01:00
parent 1159ba2fa1
commit 9be859a01e
1 changed files with 2 additions and 2 deletions

View File

@ -84,9 +84,9 @@ class Forum extends Extension
$event->add_stats("Forum posts: $posts_count, $posts_rate per day");
}
public function onUserBlockBuilding(UserBlockBuildingEvent $event)
public function onPageNavBuilding(PageNavBuildingEvent $event)
{
$event->add_link("Forum", make_link("forum/index"));
$event->add_nav_link("forum", new Link('forum/index'), "Forum");
}
public function onPageRequest(PageRequestEvent $event)