diff options
Diffstat (limited to 'mod/bookmarks/views')
-rw-r--r-- | mod/bookmarks/views/default/bookmarks/page_links.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/bookmarks/views/default/bookmarks/page_links.php b/mod/bookmarks/views/default/bookmarks/page_links.php index 79678a47b..92ea8600a 100644 --- a/mod/bookmarks/views/default/bookmarks/page_links.php +++ b/mod/bookmarks/views/default/bookmarks/page_links.php @@ -2,6 +2,10 @@ /** * Shows a "Bookmark this" link and icon */ +if (!elgg_is_logged_in()) { + return; +} + $url = 'pg/bookmarks/add/' . elgg_get_logged_in_user_guid() . '?address=' . urlencode(current_page_url()); $return[] = new ElggMenuItem('bookmark_this_page', elgg_echo('bookmarks:this'), $url); @@ -13,4 +17,4 @@ echo elgg_view('output/url', array( 'rel' => 'nofollow', 'encode_text' => false, 'class' => 'right elgg-bookmark-page', -)); +));
\ No newline at end of file |