mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/13740] Keep keys when sorting navigation
PHPBB3-13740
This commit is contained in:
parent
030f6da911
commit
136ec8d7e2
1 changed files with 2 additions and 2 deletions
|
@ -267,10 +267,10 @@ class helper
|
||||||
protected function sort_navigation_level($nav_array)
|
protected function sort_navigation_level($nav_array)
|
||||||
{
|
{
|
||||||
$sorted = array();
|
$sorted = array();
|
||||||
foreach ($nav_array as $nav)
|
foreach ($nav_array as $key => $nav)
|
||||||
{
|
{
|
||||||
$order = (isset($nav['order'])) ? $nav['order'] : 0;
|
$order = (isset($nav['order'])) ? $nav['order'] : 0;
|
||||||
$sorted[$order][] = $nav;
|
$sorted[$order][$key] = $nav;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Linearization of navigation array
|
// Linearization of navigation array
|
||||||
|
|
Loading…
Add table
Reference in a new issue