diff options
Diffstat (limited to 'views/default/beechat')
-rw-r--r-- | views/default/beechat/beechat.php | 2 | ||||
-rw-r--r-- | views/default/beechat/beechat.userjs.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/views/default/beechat/beechat.php b/views/default/beechat/beechat.php index d1e9e17be..397d35f74 100644 --- a/views/default/beechat/beechat.php +++ b/views/default/beechat/beechat.php @@ -9,7 +9,7 @@ * @link http://beechannels.com/ */ -if (isloggedin() && get_loggedin_user()->chatenabled && elgg_get_context() != 'admin') { +if (elgg_is_logged_in() && elgg_get_logged_in_user_entity()->chatenabled && elgg_get_context() != 'admin') { ?> <div id="beechat"> <div id="beechat_left"> diff --git a/views/default/beechat/beechat.userjs.php b/views/default/beechat/beechat.userjs.php index 1a4d1565c..ed59b683f 100644 --- a/views/default/beechat/beechat.userjs.php +++ b/views/default/beechat/beechat.userjs.php @@ -46,7 +46,7 @@ if (elgg_is_logged_in()) { 'limit' => 0)); if (!empty($chatrooms)) { foreach($chatrooms as $chatroom) { - echo "g_user_rooms.push(['".beechat_friendly_title($chatroom->name)."@".get_plugin_setting("groupdomain", "beechat")."', '".$chatroom->guid."']);"; + echo "g_user_rooms.push(['".beechat_friendly_title($chatroom->name)."@".elgg_get_plugin_setting("groupdomain", "beechat")."', '".$chatroom->guid."']);"; } } } |