some fixes to #395
This commit is contained in:
parent
d820fa155b
commit
95751dddff
@ -1516,7 +1516,7 @@ function profile_tabs($a, $is_owner=False, $nickname=Null){
|
||||
}
|
||||
|
||||
require_once('include/chat.php');
|
||||
$chats = chatroom_list($a->profile['profile_uid']);
|
||||
$chats = chatroom_list($uid);
|
||||
$subdued = ((count($chats)) ? '' : ' subdued');
|
||||
$tabs[] = array(
|
||||
'label' => t('Chatrooms'),
|
||||
|
@ -887,7 +887,7 @@ class RedBrowser extends DAV\Browser\Plugin {
|
||||
require_once('include/conversation.php');
|
||||
|
||||
if($this->auth->channel_name)
|
||||
$html = profile_tabs(get_app(),(($this->auth->channel_id == local_user()) ? true : false),$this->auth->channel_name);
|
||||
$html = profile_tabs(get_app(),(($this->auth->owner_id == local_user()) ? true : false),$this->auth->owner_nick);
|
||||
|
||||
$html .= "
|
||||
<body>
|
||||
|
@ -213,7 +213,7 @@ function chat_content(&$a) {
|
||||
|
||||
require_once('include/conversation.php');
|
||||
|
||||
$o = profile_tabs($a,((local_user() && local_user() == $a->profile['profile_uid']) ? true : false));
|
||||
$o = profile_tabs($a,((local_user() && local_user() == $a->profile['profile_uid']) ? true : false),$a->profile['channel_address']);
|
||||
|
||||
require_once('include/widgets.php');
|
||||
|
||||
|
Reference in New Issue
Block a user