Provide profile tabs opt-out.
This commit is contained in:
parent
29aece3472
commit
e03f2a97b6
@ -1476,7 +1476,10 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
|
|||||||
$nickname = $channel['channel_address'];
|
$nickname = $channel['channel_address'];
|
||||||
|
|
||||||
$uid = (($a->profile['profile_uid']) ? $a->profile['profile_uid'] : local_user());
|
$uid = (($a->profile['profile_uid']) ? $a->profile['profile_uid'] : local_user());
|
||||||
|
|
||||||
|
if (get_pconfig($uid,system,noprofiletabs))
|
||||||
|
return;
|
||||||
|
|
||||||
if(x($_GET,'tab'))
|
if(x($_GET,'tab'))
|
||||||
$tab = notags(trim($_GET['tab']));
|
$tab = notags(trim($_GET['tab']));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user