diff --git a/ext/system/main.php b/ext/system/main.php index f33a7a120..4bd36dd51 100644 --- a/ext/system/main.php +++ b/ext/system/main.php @@ -12,7 +12,7 @@ public function onPageRequest(PageRequestEvent $event) if ($event->page_matches("system")) { $e = send_event(new PageSubNavBuildingEvent("system")); - usort($e->links, "Shimmie2\sort_nav_links"); + usort($e->links, fn (NavLink $a, NavLink $b) => $a->order - $b->order); $link = $e->links[0]->link; $page->set_redirect($link->make_link());