diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-23 00:02:33 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-23 00:02:33 +0000 |
commit | 250e367c61b55ee4399e2b4ee49b940512b24b53 (patch) | |
tree | 37c7d96f1d3ef1ab6ed9b9e0da533288b4abf0e5 /mod/bookmarks/start.php | |
parent | 8f6acf45e0a371806424f51e19a08bc3edb44e75 (diff) | |
download | elgg-250e367c61b55ee4399e2b4ee49b940512b24b53.tar.gz elgg-250e367c61b55ee4399e2b4ee49b940512b24b53.tar.bz2 |
Fixes #3218 group content pages now use container method to determine who can add content
git-svn-id: http://code.elgg.org/elgg/trunk@8818 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/bookmarks/start.php')
-rw-r--r-- | mod/bookmarks/start.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/bookmarks/start.php b/mod/bookmarks/start.php index 9d0aa362e..fa837c1d2 100644 --- a/mod/bookmarks/start.php +++ b/mod/bookmarks/start.php @@ -293,6 +293,10 @@ function bookmarks_page_menu($hook, $type, $return, $params) { // only show bookmarklet in bookmark pages if (elgg_in_context('bookmarks')) { $page_owner = elgg_get_page_owner_entity(); + if (!$page_owner) { + $page_owner = elgg_get_logged_in_user_entity(); + } + if ($page_owner instanceof ElggGroup) { $title = elgg_echo('bookmarks:bookmarklet:group'); } else { |