diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-23 18:46:41 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-11-23 18:46:41 -0500 |
commit | 47bd8586910b1df3f29e2425572372e382b26f6a (patch) | |
tree | 044b79b6d9ac1317837fe08f4359f2c291497c9d /pages/photos | |
parent | 0aa823656bf92ae472cb6780afb24f5a0390b880 (diff) | |
download | elgg-47bd8586910b1df3f29e2425572372e382b26f6a.tar.gz elgg-47bd8586910b1df3f29e2425572372e382b26f6a.tar.bz2 |
added support for group albums
Diffstat (limited to 'pages/photos')
-rw-r--r-- | pages/photos/album/view.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pages/photos/album/view.php b/pages/photos/album/view.php index aafcf14bc..39816b299 100644 --- a/pages/photos/album/view.php +++ b/pages/photos/album/view.php @@ -23,7 +23,11 @@ $title = elgg_echo($album->getTitle()); // set up breadcrumbs elgg_push_breadcrumb(elgg_echo('photos'), 'photos/all'); -elgg_push_breadcrumb($owner->name, "photos/owner/$owner->username"); +if (elgg_instanceof($owner, 'group')) { + elgg_push_breadcrumb($owner->name, "photos/group/$owner->guid/all"); +} else { + elgg_push_breadcrumb($owner->name, "photos/owner/$owner->username"); +} elgg_push_breadcrumb($album->getTitle()); $content = elgg_view_entity($album, array('full_view' => true)); |