]> git.mxchange.org Git - friendica.git/commitdiff
when public access is blocked, profile page should show login box
authorFriendika <info@friendika.com>
Fri, 22 Apr 2011 01:39:07 +0000 (18:39 -0700)
committerFriendika <info@friendika.com>
Fri, 22 Apr 2011 01:39:07 +0000 (18:39 -0700)
mod/profile.php

index c350aa08792ca445879570a7ec64ba60b35dfb6c..2af6f2429bb1033fa5694cf5f0ce8a18ca64c8a6 100644 (file)
@@ -52,8 +52,7 @@ function profile_init(&$a) {
 function profile_content(&$a, $update = 0) {
 
        if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
-               notice( t('Public access denied.') . EOL);
-               return;
+               return login();
        }