From ae3ca2b7df7cd9a9cfc069d43f7b6d6cd7aae387 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 27 Jan 2016 23:02:36 -0800 Subject: block_public_blackout setting --- include/identity.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/identity.php') diff --git a/include/identity.php b/include/identity.php index 32c4dd130..fd0b4d7f5 100644 --- a/include/identity.php +++ b/include/identity.php @@ -924,6 +924,9 @@ function profile_sidebar($profile, $block = 0, $show_connect = true) { $pdesc = true; $reddress = true; + if($block && intval(get_config('system','block_public_blackout'))) + return $o; + if((! is_array($profile)) && (! count($profile))) return $o; @@ -935,6 +938,7 @@ function profile_sidebar($profile, $block = 0, $show_connect = true) { $show_connect = false; + $profile['picdate'] = urlencode($profile['picdate']); call_hooks('profile_sidebar_enter', $profile); -- cgit v1.2.3