aboutsummaryrefslogtreecommitdiff
path: root/pages/photos/album/view.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/photos/album/view.php')
-rw-r--r--pages/photos/album/view.php6
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));