aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authormarijus <mario@localhost.localdomain>2014-02-06 08:49:17 +0100
committermarijus <mario@localhost.localdomain>2014-02-06 08:49:17 +0100
commitd1bd6cdb25108e78173f92b2e11d03b617653ac8 (patch)
tree1caccd16860b746e97c646bb2c41d859f1b25632 /include/conversation.php
parentbd1849ddae165a85cb57377e9a35ea10b48fdddc (diff)
parent2c451d5c288d976b886338df4692249125dc8172 (diff)
downloadvolse-hubzilla-d1bd6cdb25108e78173f92b2e11d03b617653ac8.tar.gz
volse-hubzilla-d1bd6cdb25108e78173f92b2e11d03b617653ac8.tar.bz2
volse-hubzilla-d1bd6cdb25108e78173f92b2e11d03b617653ac8.zip
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 633435871..77c7bac70 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1488,6 +1488,19 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
'id' => 'files-tab',
);
}
+
+ require_once('include/chat.php');
+ $chats = chatroom_list($a->profile['profile_uid']);
+
+ $tabs[] = array(
+ 'label' => t('Chatrooms') . '(' . count($chats) . ')',
+ 'url' => $a->get_baseurl() . '/chat/' . $nickname,
+ 'sel' => ((argv(0) == 'chat') ? 'active' : ''),
+ 'title' => t('Chatrooms'),
+ 'id' => 'chat-tab',
+ );
+
+
if($is_owner) {
$tabs[] = array(
'label' => t('Events'),
@@ -1506,6 +1519,7 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
);
}
+
if($is_owner && feature_enabled($a->profile['profile_uid'],'webpages')) {
$tabs[] = array(
'label' => t('Webpages'),