aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-03-28 14:29:55 +0000
committerCash Costello <cash.costello@gmail.com>2009-03-28 14:29:55 +0000
commit2f94fa464bdc62e4e4a394f231df88ee84b33502 (patch)
treea005ad80080e830c0e31df24b9254ec5649bdeae /start.php
parent871395b74470a70e37aeb684b820e289b0930cba (diff)
downloadelgg-2f94fa464bdc62e4e4a394f231df88ee84b33502.tar.gz
elgg-2f94fa464bdc62e4e4a394f231df88ee84b33502.tar.bz2
trying to make menus more consistent
Diffstat (limited to 'start.php')
-rw-r--r--start.php8
1 files changed, 5 insertions, 3 deletions
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