diff options
author | Steve Clay <steve@mrclay.org> | 2012-10-25 06:54:30 -0700 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-10-25 06:54:30 -0700 |
commit | bdb6d69bc9d81b3cef39bc1b60df731ee81844d3 (patch) | |
tree | c8a1742130d7ef3e72b7872bd22e7868eff5e16c /engine/classes/ElggMenuItem.php | |
parent | 5dc4e276e18f890b0ae03c472db8cc660fe5c13d (diff) | |
parent | 86acb5cca828931505593c97d969ac60c2bc084f (diff) | |
download | elgg-bdb6d69bc9d81b3cef39bc1b60df731ee81844d3.tar.gz elgg-bdb6d69bc9d81b3cef39bc1b60df731ee81844d3.tar.bz2 |
Merge pull request #293 from Srokap/ticket_3035
Fixes #3035 - menu items appearing in reverse registration order
Diffstat (limited to 'engine/classes/ElggMenuItem.php')
-rw-r--r-- | engine/classes/ElggMenuItem.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php index 4bc9144d4..fe25f3ddd 100644 --- a/engine/classes/ElggMenuItem.php +++ b/engine/classes/ElggMenuItem.php @@ -542,6 +542,9 @@ class ElggMenuItem { * @return void */ public function sortChildren($sortFunction) { + foreach ($this->data['children'] as $key => $node) { + $this->data['children'][$key]->original_order = $key; + } usort($this->data['children'], $sortFunction); } |