diff options
author | marijus <mario@localhost.localdomain> | 2014-02-12 21:31:11 +0100 |
---|---|---|
committer | marijus <mario@localhost.localdomain> | 2014-02-12 21:31:11 +0100 |
commit | e06d9e97c56d119c35c59ba65c7437a28115e4a0 (patch) | |
tree | 49d958acaf126df3498ae61b58798719bc232e61 /include/widgets.php | |
parent | e47035f85a680344f2d5f58971ca2629c70c7838 (diff) | |
download | volse-hubzilla-e06d9e97c56d119c35c59ba65c7437a28115e4a0.tar.gz volse-hubzilla-e06d9e97c56d119c35c59ba65c7437a28115e4a0.tar.bz2 volse-hubzilla-e06d9e97c56d119c35c59ba65c7437a28115e4a0.zip |
make chatrooms in /chat/channel visible to observers aswell
Diffstat (limited to 'include/widgets.php')
-rw-r--r-- | include/widgets.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/widgets.php b/include/widgets.php index 0151f7c27..7c316410e 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -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, )); } |