aboutsummaryrefslogtreecommitdiff
path: root/mod/bookmarks/views/default
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-18 03:21:54 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-18 03:21:54 +0000
commitf4ad8cd96810bf5f1a1a4db9270f7924dbbb0fc4 (patch)
treeea3cea34545e0957985aaaacc496ee8790f29f12 /mod/bookmarks/views/default
parent67d48d8bc7307eda7d7f9bac2c412120f1df2d02 (diff)
downloadelgg-f4ad8cd96810bf5f1a1a4db9270f7924dbbb0fc4.tar.gz
elgg-f4ad8cd96810bf5f1a1a4db9270f7924dbbb0fc4.tar.bz2
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
Diffstat (limited to 'mod/bookmarks/views/default')
-rw-r--r--mod/bookmarks/views/default/bookmarks/page_links.php6
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