aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/bookmarklet.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/bookmarks/bookmarklet.php')
-rw-r--r--mod/bookmarks/bookmarklet.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/bookmarks/bookmarklet.php b/mod/bookmarks/bookmarklet.php
index a156cf035..9f9dd5150 100644
--- a/mod/bookmarks/bookmarklet.php
+++ b/mod/bookmarks/bookmarklet.php
@@ -13,8 +13,8 @@ gatekeeper();
// Get the current page's owner
$page_owner = elgg_get_page_owner_entity();
-if ($page_owner === false || is_null($page_owner) && (get_loggedin_user())) {
- $page_owner = get_loggedin_user();
+if ($page_owner === false || is_null($page_owner) && (elgg_get_logged_in_user_entity())) {
+ $page_owner = elgg_get_logged_in_user_entity();
set_page_owner($page_owner->getGUID());
}