[system] fix sorting for system nav links, fixes #986
This commit is contained in:
parent
015950c30c
commit
145deaeea5
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class System extends Extension
|
|||
|
||||
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());
|
||||
|
|
Reference in a new issue