]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
profile owner block can now be viewed while logged out.
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 21 Apr 2010 14:12:26 +0000 (14:12 +0000)
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 21 Apr 2010 14:12:26 +0000 (14:12 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5835 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/profile/views/default/profile/profile_ownerblock.php

index eeffffe02d9edba9a9ec6434aa0b8efe8c1c5555..a040582d052212ebcaa444b3c7c75f48703fa7f0 100755 (executable)
@@ -29,7 +29,7 @@ if($section == 'details'){
        $more_info .= "</div>";
 }
 $profile_actions = "";
-if(get_loggedin_user()->getGuid() == page_owner()){
+if(isloggedin() && (get_loggedin_user()->getGuid() == page_owner())){
        $profile_actions = "<div class='clearfloat profile_actions'>";
        $profile_actions .= "<a href='{$vars['url']}pg/profile/{$user->username}/edit/details' class='action_button'>". elgg_echo('profile:edit') ."</a>";
        $profile_actions .= "<a href='{$vars['url']}pg/profile/{$user->username}/edit/icon' class='action_button'>". elgg_echo('profile:editicon') ."</a>";
@@ -48,7 +48,7 @@ if(get_loggedin_user()->getGuid() == page_owner()){
                        }
                }
        }
-       if(is_plugin_enabled('messages')){
+       if(is_plugin_enabled('messages') && isloggedin()){
                $profile_actions .= "<a href=\"{$vars['url']}mod/messages/send.php?send_to={$user->guid}\" class='action_button'>". elgg_echo('messages:send') ."</a>";
        }
        $profile_actions .= "</div>";