make chatrooms in /chat/channel visible to observers aswell
This commit is contained in:
@@ -578,13 +578,16 @@ function widget_menu_preview($arr) {
|
||||
}
|
||||
|
||||
function widget_chatroom_list($arr) {
|
||||
|
||||
$a = get_app();
|
||||
|
||||
require_once("include/chat.php");
|
||||
$r = chatroom_list(local_user());
|
||||
$channel = get_app()->get_channel();
|
||||
$r = chatroom_list($a->profile['profile_uid']);
|
||||
|
||||
return replace_macros(get_markup_template('chatroomlist.tpl'),array(
|
||||
'$header' => t('Chat Rooms'),
|
||||
'$baseurl' => z_root(),
|
||||
'$nickname' => $channel['channel_address'],
|
||||
'$nickname' => $a->profile['channel_address'],
|
||||
'$items' => $r,
|
||||
));
|
||||
}
|
||||
|
Reference in New Issue
Block a user