aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Willingham <beardyunixer@beardyunixer.com>2014-07-13 18:44:37 +0100
committerThomas Willingham <beardyunixer@beardyunixer.com>2014-07-13 18:44:37 +0100
commite03f2a97b6718e6aa72c46b9517a79e13dd7823b (patch)
tree560491cc644efddd8d7f6cd93c98e1539e6bbda2
parent29aece3472ff2d9c54b38c0d4204c907bb068d77 (diff)
downloadvolse-hubzilla-e03f2a97b6718e6aa72c46b9517a79e13dd7823b.tar.gz
volse-hubzilla-e03f2a97b6718e6aa72c46b9517a79e13dd7823b.tar.bz2
volse-hubzilla-e03f2a97b6718e6aa72c46b9517a79e13dd7823b.zip
Provide profile tabs opt-out.
-rw-r--r--include/conversation.php5
1 files changed, 4 insertions, 1 deletions
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']));