From 2f94fa464bdc62e4e4a394f231df88ee84b33502 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 28 Mar 2009 14:29:55 +0000 Subject: trying to make menus more consistent --- start.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'start.php') diff --git a/start.php b/start.php index f9df12603..e2fbbe15e 100644 --- a/start.php +++ b/start.php @@ -53,9 +53,11 @@ $page_owner = page_owner_entity(); if ($page_owner instanceof ElggGroup) { - if ($page_owner->photos_enable != "no") { - add_submenu_item( sprintf(elgg_echo('album:group'),$page_owner->name), - $CONFIG->wwwroot . "pg/photos/owned/" . $page_owner->username); + if (get_context() == "groups") { + if ($page_owner->photos_enable != "no") { + add_submenu_item( sprintf(elgg_echo('album:group'),$page_owner->name), + $CONFIG->wwwroot . "pg/photos/owned/" . $page_owner->username); + } } } // context is only set to photos on individual pages, not on group pages -- cgit v1.2.3