mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:11:47 +02:00
[ticket/13740] Keep keys when sorting navigation
PHPBB3-13740
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user