diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-03-31 00:37:40 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-03-31 00:37:40 +0200 |
commit | df891f4ad2eee3b07bad73d703a46364dad03508 (patch) | |
tree | 8b7e1aab334c78041bbdce5920e9184b7ea78b9a /mod/chatsvc.php | |
parent | 08461c7049ee5c9788e815537b540b9987a5eace (diff) | |
download | volse-hubzilla-df891f4ad2eee3b07bad73d703a46364dad03508.tar.gz volse-hubzilla-df891f4ad2eee3b07bad73d703a46364dad03508.tar.bz2 volse-hubzilla-df891f4ad2eee3b07bad73d703a46364dad03508.zip |
more work on mod chat
Diffstat (limited to 'mod/chatsvc.php')
-rw-r--r-- | mod/chatsvc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/chatsvc.php b/mod/chatsvc.php index 44225e6dd..829fef6f8 100644 --- a/mod/chatsvc.php +++ b/mod/chatsvc.php @@ -109,14 +109,16 @@ function chatsvc_content(&$a) { switch($rr['cp_status']) { case 'away': $status = t('Away'); + $status_class = 'away'; break; case 'online': default: $status = t('Online'); + $status_class = 'online'; break; } - $inroom[] = array('img' => zid($rr['xchan_photo_m']), 'img_type' => $rr['xchan_photo_mimetype'],'name' => $rr['xchan_name'], status => $status); + $inroom[] = array('img' => zid($rr['xchan_photo_m']), 'img_type' => $rr['xchan_photo_mimetype'],'name' => $rr['xchan_name'], 'status' => $status, 'status_class' => $status_class); } } |