From 9be859a01e48abdafd0e23eb8fe32819dc9ca58b Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 19 Sep 2020 00:20:09 +0100 Subject: [PATCH] Link to forum from navigation, not user links, see #753 --- ext/forum/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/forum/main.php b/ext/forum/main.php index b02ff45e..a3e4ed95 100644 --- a/ext/forum/main.php +++ b/ext/forum/main.php @@ -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)