]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Don't show the bookmark this link if you're not logged in.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 18 Feb 2011 03:21:54 +0000 (03:21 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 18 Feb 2011 03:21:54 +0000 (03:21 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8282 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/bookmarks/views/default/bookmarks/page_links.php

index 79678a47b4c2fd53ea4f3c794fab6b8731df91e0..92ea8600aed75ad401dd0efd4625bca89536ea3b 100644 (file)
@@ -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