aboutsummaryrefslogtreecommitdiffstats
path: root/include/widgets.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-12 13:46:25 -0800
committerfriendica <info@friendica.com>2014-02-12 13:46:25 -0800
commit1ca85abf83d95eb49f9b7ffbbda5f01de40388e5 (patch)
tree069e611ceb07f08c555a33dfb81edcab3ea958b1 /include/widgets.php
parent7c0101899da879dc52008bd9c0445d4a24ab9fcb (diff)
parenta14df3ab72e58ea9d60ef79edf66b51cb3107f46 (diff)
downloadvolse-hubzilla-1ca85abf83d95eb49f9b7ffbbda5f01de40388e5.tar.gz
volse-hubzilla-1ca85abf83d95eb49f9b7ffbbda5f01de40388e5.tar.bz2
volse-hubzilla-1ca85abf83d95eb49f9b7ffbbda5f01de40388e5.zip
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'include/widgets.php')
-rw-r--r--include/widgets.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/widgets.php b/include/widgets.php
index 0151f7c27..3c2333323 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -578,13 +578,13 @@ 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,
));
}