From e03f2a97b6718e6aa72c46b9517a79e13dd7823b Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Sun, 13 Jul 2014 18:44:37 +0100 Subject: Provide profile tabs opt-out. --- include/conversation.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/conversation.php') diff --git a/include/conversation.php b/include/conversation.php index b6db54943..49415c776 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -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'])); -- cgit v1.2.3