diff options
Diffstat (limited to 'mod/bookmarks/pages/edit.php')
-rw-r--r-- | mod/bookmarks/pages/edit.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mod/bookmarks/pages/edit.php b/mod/bookmarks/pages/edit.php index 7b055e699..24513a960 100644 --- a/mod/bookmarks/pages/edit.php +++ b/mod/bookmarks/pages/edit.php @@ -7,17 +7,13 @@ $bookmark_guid = get_input('guid'); $bookmark = get_entity($bookmark_guid); -$container_guid = (int) get_input('container_guid'); -$container = get_entity($container_guid); if (!elgg_instanceof($bookmark, 'object', 'bookmarks') || !$bookmark->canEdit()) { register_error(elgg_echo('bookmarks:unknown_bookmark')); forward(REFERRER); } -// for groups. -$container = $bookmark->getContainerEntity(); -elgg_set_page_owner_guid($container->getGUID()); +$page_owner = elgg_get_page_owner_entity(); $title = elgg_echo('bookmarks:edit'); elgg_push_breadcrumb($title); |