aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-14 02:44:09 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-14 02:44:09 +0000
commit29c90043277bb919275e9cea3f99393f8d4c9953 (patch)
tree6007364a5d21632d270f0a5361e9d95e52627377 /views/default
parent444611b49a56b2b282d0f9b9290d17aecd9ae321 (diff)
downloadelgg-29c90043277bb919275e9cea3f99393f8d4c9953.tar.gz
elgg-29c90043277bb919275e9cea3f99393f8d4c9953.tar.bz2
Fixes #3103. Re-added code accidentally removed in r8611 that broke page menu selected items.
git-svn-id: http://code.elgg.org/elgg/trunk@8700 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/navigation/menu/page.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/views/default/navigation/menu/page.php b/views/default/navigation/menu/page.php
index c7d858e1d..56a288234 100644
--- a/views/default/navigation/menu/page.php
+++ b/views/default/navigation/menu/page.php
@@ -16,6 +16,15 @@ if (isset($vars['class'])) {
$class = "$class {$vars['class']}";
}
+if (isset($vars['selected_item'])) {
+ $parent = $vars['selected_item']->getParent();
+
+ while ($parent) {
+ $parent->setSelected();
+ $parent = $parent->getParent();
+ }
+}
+
foreach ($vars['menu'] as $section => $menu_items) {
echo elgg_view('navigation/menu/elements/section', array(
'items' => $menu_items,