From f4ad8cd96810bf5f1a1a4db9270f7924dbbb0fc4 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 18 Feb 2011 03:21:54 +0000 Subject: Don't show the bookmark this link if you're not logged in. git-svn-id: http://code.elgg.org/elgg/trunk@8282 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/bookmarks/views/default/bookmarks/page_links.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3