diff options
author | cash <cash.costello@gmail.com> | 2011-10-10 20:25:20 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-10-10 20:25:20 -0400 |
commit | ff75f99e734b6b99da77ba946e953f08a6e81a5b (patch) | |
tree | 2f4c2cd44b740e5657b6116ac2ced2b23d774947 /mod/bookmarks/pages | |
parent | 1e4c47b736718ecb18a4367657e147e412fab06e (diff) | |
download | elgg-ff75f99e734b6b99da77ba946e953f08a6e81a5b.tar.gz elgg-ff75f99e734b6b99da77ba946e953f08a6e81a5b.tar.bz2 |
Refs #3916 added checks to all content plugins in master for page owner in mine and friends pages
Diffstat (limited to 'mod/bookmarks/pages')
-rw-r--r-- | mod/bookmarks/pages/bookmarks/friends.php | 3 | ||||
-rw-r--r-- | mod/bookmarks/pages/bookmarks/owner.php | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/mod/bookmarks/pages/bookmarks/friends.php b/mod/bookmarks/pages/bookmarks/friends.php index 3491090a5..be164fcec 100644 --- a/mod/bookmarks/pages/bookmarks/friends.php +++ b/mod/bookmarks/pages/bookmarks/friends.php @@ -6,6 +6,9 @@ */ $owner = elgg_get_page_owner_entity(); +if (!$page_owner) { + forward('bookmarks/all'); +} elgg_push_breadcrumb($owner->name, "bookmarks/owner/$owner->username"); elgg_push_breadcrumb(elgg_echo('friends')); diff --git a/mod/bookmarks/pages/bookmarks/owner.php b/mod/bookmarks/pages/bookmarks/owner.php index 679c986be..7f55e08de 100644 --- a/mod/bookmarks/pages/bookmarks/owner.php +++ b/mod/bookmarks/pages/bookmarks/owner.php @@ -6,6 +6,9 @@ */ $page_owner = elgg_get_page_owner_entity(); +if (!$page_owner) { + forward('bookmarks/all'); +} elgg_push_breadcrumb($page_owner->name); |