aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/pages/add.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/bookmarks/pages/add.php')
-rw-r--r--mod/bookmarks/pages/add.php13
1 files changed, 1 insertions, 12 deletions
diff --git a/mod/bookmarks/pages/add.php b/mod/bookmarks/pages/add.php
index c748daca5..c7fd3cf79 100644
--- a/mod/bookmarks/pages/add.php
+++ b/mod/bookmarks/pages/add.php
@@ -5,18 +5,7 @@
* @package Bookmarks
*/
-$bookmark_guid = get_input('guid');
-$bookmark = get_entity($bookmark_guid);
-$container_guid = (int) get_input('container_guid');
-$container = get_entity($container_guid);
-
-// for groups.
-$page_owner = $container;
-if (elgg_instanceof($container, 'object')) {
- $page_owner = $container->getContainerEntity();
-}
-
-elgg_set_page_owner_guid($page_owner->getGUID());
+$page_owner = elgg_get_page_owner_entity();
$title = elgg_echo('bookmarks:add');
elgg_push_breadcrumb($title);