Provide profile tabs opt-out.

This commit is contained in:
Thomas Willingham 2014-07-13 18:44:37 +01:00
parent 29aece3472
commit e03f2a97b6

View File

@ -1476,7 +1476,10 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
$nickname = $channel['channel_address'];
$uid = (($a->profile['profile_uid']) ? $a->profile['profile_uid'] : local_user());
if (get_pconfig($uid,system,noprofiletabs))
return;
if(x($_GET,'tab'))
$tab = notags(trim($_GET['tab']));