diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-18 03:21:54 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-18 03:21:54 +0000 |
commit | f4ad8cd96810bf5f1a1a4db9270f7924dbbb0fc4 (patch) | |
tree | ea3cea34545e0957985aaaacc496ee8790f29f12 /mod | |
parent | 67d48d8bc7307eda7d7f9bac2c412120f1df2d02 (diff) | |
download | elgg-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')
-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 |