diff options
Diffstat (limited to 'mod/bookmarks/pages/view.php')
-rw-r--r-- | mod/bookmarks/pages/view.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/mod/bookmarks/pages/view.php b/mod/bookmarks/pages/view.php index 131a0b52b..b5a857857 100644 --- a/mod/bookmarks/pages/view.php +++ b/mod/bookmarks/pages/view.php @@ -7,15 +7,14 @@ $bookmark = get_entity(get_input('guid')); -elgg_set_page_owner_guid($bookmark->getContainerGUID()); -$owner = elgg_get_page_owner_entity(); +$page_owner = elgg_get_page_owner_entity(); -$crumbs_title = $owner->name; +$crumbs_title = $page_owner->name; -if (elgg_instanceof($owner, 'group')) { - elgg_push_breadcrumb($crumbs_title, "pg/bookmarks/group/$owner->guid/owner"); +if (elgg_instanceof($page_owner, 'group')) { + elgg_push_breadcrumb($crumbs_title, "pg/bookmarks/group/$page_owner->guid/owner"); } else { - elgg_push_breadcrumb($crumbs_title, "pg/bookmarks/owner/$owner->username"); + elgg_push_breadcrumb($crumbs_title, "pg/bookmarks/owner/$page_owner->username"); } $title = $bookmark->title; |