aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-21 18:39:07 -0700
committerFriendika <info@friendika.com>2011-04-21 18:39:07 -0700
commiteeb3c13ad3af963b9150821fbdd6a5145d1cb188 (patch)
tree80d4999fdd1a8dec5f3652f7c6f6352d913b0d56 /mod/profile.php
parent9e19eef1941fff3e2a8785e5daa6d978e9de4900 (diff)
downloadvolse-hubzilla-eeb3c13ad3af963b9150821fbdd6a5145d1cb188.tar.gz
volse-hubzilla-eeb3c13ad3af963b9150821fbdd6a5145d1cb188.tar.bz2
volse-hubzilla-eeb3c13ad3af963b9150821fbdd6a5145d1cb188.zip
when public access is blocked, profile page should show login box
Diffstat (limited to 'mod/profile.php')
-rw-r--r--mod/profile.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/profile.php b/mod/profile.php
index c350aa087..2af6f2429 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -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();
}